2015-12-09 19:21:38 +08:00
|
|
|
#ifndef ICONTITLEWIDGET_H
|
|
|
|
#define ICONTITLEWIDGET_H
|
|
|
|
|
|
|
|
#include <QFrame>
|
|
|
|
class QIcon;
|
|
|
|
class QString;
|
2016-02-26 16:07:19 +08:00
|
|
|
class QLabel;
|
2015-12-09 19:21:38 +08:00
|
|
|
|
|
|
|
class IconTitleWidget : public QFrame
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2016-02-26 16:07:19 +08:00
|
|
|
|
2015-12-09 19:21:38 +08:00
|
|
|
public:
|
|
|
|
explicit IconTitleWidget(const QIcon& icon, const QString& title, QWidget *parent = 0);
|
2016-03-08 21:24:33 +08:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setIcon(const QIcon& icon);
|
|
|
|
void setTitle(const QString& title);
|
2016-02-26 16:07:19 +08:00
|
|
|
void polishUpdate();
|
2015-12-09 19:21:38 +08:00
|
|
|
|
2016-02-26 16:07:19 +08:00
|
|
|
public:
|
|
|
|
QLabel* _iconLabel;
|
|
|
|
QLabel* _titleLabel;
|
2015-12-09 19:21:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ICONTITLEWIDGET_H
|