Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/core/tooltipdialog.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
46 | ToolTipDialog(QQuickItem *parent = nullptr); | 46 | ToolTipDialog(QQuickItem *parent = nullptr); | ||
47 | ~ToolTipDialog(); | 47 | ~ToolTipDialog(); | ||
48 | 48 | | |||
49 | QQuickItem *loadDefaultItem(); | 49 | QQuickItem *loadDefaultItem(); | ||
50 | 50 | | |||
51 | Plasma::Types::Direction direction() const; | 51 | Plasma::Types::Direction direction() const; | ||
52 | void setDirection(Plasma::Types::Direction loc); | 52 | void setDirection(Plasma::Types::Direction loc); | ||
53 | 53 | | |||
54 | void dismiss(); | 54 | void dismiss(QObject *owner); | ||
55 | void keepalive(); | 55 | void keepalive(); | ||
56 | 56 | | |||
57 | bool interactive(); | 57 | bool interactive(); | ||
58 | void setInteractive(bool interactive); | 58 | void setInteractive(bool interactive); | ||
59 | 59 | | |||
60 | bool autoShowHide(); | ||||
61 | void setAutoShowHide(bool autoShowHide); | ||||
62 | | ||||
63 | bool containsMouse(); | ||||
64 | void setContainsMouse(bool contains); | ||||
65 | | ||||
60 | /** | 66 | /** | ||
61 | * Basically the last one who has shown the dialog | 67 | * Basically the last one who has shown the dialog | ||
62 | */ | 68 | */ | ||
63 | QObject *owner() const; | 69 | QObject *owner() const; | ||
64 | void setOwner(QObject *owner); | 70 | void setOwner(QObject *owner); | ||
65 | 71 | | |||
72 | Q_SIGNALS: | ||||
73 | void containsMouseChanged(); | ||||
74 | | ||||
66 | protected: | 75 | protected: | ||
67 | void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; | 76 | void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; | ||
68 | void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE; | 77 | void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE; | ||
69 | void resizeEvent(QResizeEvent *re) Q_DECL_OVERRIDE; | 78 | void resizeEvent(QResizeEvent *re) Q_DECL_OVERRIDE; | ||
70 | bool event(QEvent *e) Q_DECL_OVERRIDE; | 79 | bool event(QEvent *e) Q_DECL_OVERRIDE; | ||
71 | 80 | | |||
72 | private Q_SLOTS: | 81 | private Q_SLOTS: | ||
73 | void valueChanged(const QVariant &value); | 82 | void valueChanged(const QVariant &value); | ||
74 | 83 | | |||
75 | private: | 84 | private: | ||
76 | KDeclarative::QmlObject *m_qmlObject; | 85 | KDeclarative::QmlObject *m_qmlObject; | ||
77 | QTimer *m_showTimer; | 86 | QTimer *m_showTimer; | ||
78 | int m_hideTimeout; | 87 | int m_hideTimeout; | ||
79 | bool m_interactive; | 88 | bool m_interactive; | ||
89 | bool m_autoShowHide; | ||||
90 | bool m_containsMouse; | ||||
80 | QObject *m_owner; | 91 | QObject *m_owner; | ||
81 | }; | 92 | }; | ||
82 | 93 | | |||
83 | #endif | 94 | #endif |