summaryrefslogtreecommitdiffstats
path: root/toolwindow.h
blob: 7f8e6214aa9e5410dab227def818af8ab6893392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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