aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/common/immediatetooltip.h
blob: 27ffaccc65724e708de68588a2134ac4e12abace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef IMMEDIATETOOLTIP_H
#define IMMEDIATETOOLTIP_H

#include <QObject>

class ImmediateTooltip : public QObject
{
    Q_OBJECT
    public:
        explicit ImmediateTooltip(QWidget *parent = nullptr);

        const QString& getToolTip() const;
        void setToolTip(const QString& newToolTip);

    protected:
        bool eventFilter(QObject *obj, QEvent *event) override;

    private:
        QString toolTip;
};

#endif // IMMEDIATETOOLTIP_H