]> git.sur5r.net Git - minitube/blob - src/appwidget.h
Upload 3.9.3-2 to unstable
[minitube] / src / appwidget.h
1 #ifndef APPWIDGET_H
2 #define APPWIDGET_H
3
4 #include <QtWidgets>
5
6
7 class AppWidget : public QWidget {
8
9     Q_OBJECT
10
11 public:
12     AppWidget(const QString &name, const QString &code, QWidget *parent = 0);
13     QLabel *icon;
14
15 protected:
16     void enterEvent(QEvent *e);
17     void leaveEvent(QEvent *e);
18     void mouseReleaseEvent(QMouseEvent *e);
19
20 private slots:
21     void iconDownloaded(const QByteArray &bytes);
22     void downloadApp();
23
24 private:
25     QPushButton *downloadButton;
26     QString name;
27     QString url;
28     QString webPage;
29 };
30
31 class AppsWidget : public QWidget {
32
33     Q_OBJECT
34
35 public:
36     AppsWidget(QWidget *parent = 0);
37
38 protected:
39     void paintEvent(QPaintEvent *e);
40
41 private:
42     void setupApp(const QString &name, const QString &code);
43
44 };
45
46 #endif // APPWIDGET_H