#ifndef TOOLWINDOW_H #define TOOLWINDOW_H #include class QLabel; class QTimer; class ToolWindow : public QWidget { Q_OBJECT public: explicit ToolWindow(QWidget *parent = 0, Qt::WindowFlags f = Qt::FramelessWindowHint | Qt::WindowDoesNotAcceptFocus); public slots: void setText(const QString &text); void toHTML(const QString &text); void showMe(); private: QLabel *mLabel; QTimer *mHideTimer; }; #endif // TOOLWINDOW_H