diff options
Diffstat (limited to 'toolwindow.h')
-rw-r--r-- | toolwindow.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/toolwindow.h b/toolwindow.h new file mode 100644 index 0000000..7f8e621 --- /dev/null +++ b/toolwindow.h @@ -0,0 +1,24 @@ +#ifndef TOOLWINDOW_H +#define TOOLWINDOW_H + +#include <QWidget> + +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 |