Qt-Advanced-Docking-System/AdvancedDockingSystemDemo/src/icontitlewidget.h

27 lines
481 B
C
Raw Normal View History

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