iconhint.h 372 B

123456789101112131415161718192021222324252627
  1. #ifndef ICONHINT_H
  2. #define ICONHINT_H
  3. #include <QLabel>
  4. class IconHint : public QLabel
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit IconHint(QWidget *parent = 0);
  9. void setHintTitle(const QString &title);
  10. void setHintText(const QString &text);
  11. ~IconHint();
  12. private:
  13. void updateText();
  14. private:
  15. QString title_;
  16. QString text_;
  17. };
  18. #endif // ICONHINT_H