blob: e6e3048aec1ece7bef3db9db91a52fcac530ac20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __INFO_PANEL_H__
#define __INFO_PANEL_H__
#include <QWidget>
#include <QNetworkAccessManager>
#include <QRect>
#include <QPushButton>
#include "Business.h"
#include "InfoPanelLabel.h"
class InfoPanel : public QWidget
{
public:
InfoPanel(QWidget *parent, QRect rect);
virtual ~InfoPanel(){}
QPushButton * getCancelButton() { return &cancelButton; }
QPushButton * getGoButton() { return &goButton; }
void populateInfo(Business & business);
private:
InfoPanelLabel nameLabel;
InfoPanelLabel imageLabel;
InfoPanelLabel addressLabel;
InfoPanelLabel phoneLabel;
InfoPanelLabel imgRatingLabel;
InfoPanelLabel nbReviewsLabel;
InfoPanelLabel btnsBackground;
QPushButton cancelButton;
QPushButton goButton;
QNetworkAccessManager networkManager;
};
#endif // __INFO_PANEL_H__
|