Changeset View
Changeset View
Standalone View
Standalone View
krunner/view.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 67 | Q_SIGNALS: | |||
---|---|---|---|---|---|
68 | void historyChanged(); | 68 | void historyChanged(); | ||
69 | 69 | | |||
70 | protected: | 70 | protected: | ||
71 | bool event(QEvent* event) override; | 71 | bool event(QEvent* event) override; | ||
72 | void resizeEvent(QResizeEvent *event) override; | 72 | void resizeEvent(QResizeEvent *event) override; | ||
73 | void showEvent(QShowEvent *event) override; | 73 | void showEvent(QShowEvent *event) override; | ||
74 | 74 | | |||
75 | public Q_SLOTS: | 75 | public Q_SLOTS: | ||
76 | void setVisible(bool visible); | ||||
76 | void display(); | 77 | void display(); | ||
77 | void displaySingleRunner(const QString &runnerName); | 78 | void displaySingleRunner(const QString &runnerName); | ||
78 | void displayWithClipboardContents(); | 79 | void displayWithClipboardContents(); | ||
79 | void query(const QString &term); | 80 | void query(const QString &term); | ||
80 | void querySingleRunner(const QString &runnerName, const QString &term); | 81 | void querySingleRunner(const QString &runnerName, const QString &term); | ||
81 | void switchUser(); | 82 | void switchUser(); | ||
82 | void displayConfiguration(); | 83 | void displayConfiguration(); | ||
83 | 84 | | |||
84 | protected Q_SLOTS: | 85 | protected Q_SLOTS: | ||
85 | void screenGeometryChanged(); | 86 | void screenGeometryChanged(); | ||
86 | void resetScreenPos(); | 87 | void resetScreenPos(); | ||
87 | void displayOrHide(); | 88 | void displayOrHide(); | ||
88 | void reloadConfig(); | 89 | void reloadConfig(); | ||
89 | void objectIncubated(); | 90 | void objectIncubated(); | ||
90 | void slotFocusWindowChanged(); | 91 | void slotFocusWindowChanged(); | ||
91 | 92 | | |||
92 | private: | 93 | private: | ||
93 | void writeHistory(); | 94 | void writeHistory(); | ||
94 | QPoint m_customPos; | 95 | QPoint m_customPos; | ||
95 | KDeclarative::QmlObject *m_qmlObj; | 96 | KDeclarative::QmlObject *m_qmlObj; | ||
96 | KConfigGroup m_config; | 97 | KConfigGroup m_config; | ||
97 | qreal m_offset; | 98 | qreal m_offset; | ||
98 | bool m_floating : 1; | 99 | bool m_floating : 1; | ||
100 | bool m_requestedVisible = false; | ||||
99 | QStringList m_history; | 101 | QStringList m_history; | ||
100 | }; | 102 | }; | ||
101 | 103 | | |||
102 | 104 | | |||
103 | #endif // View_H | 105 | #endif // View_H |