Changeset View
Changeset View
Standalone View
Standalone View
autotests/tabbox/mock_tabboxclient.h
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_MOCK_TABBOX_CLIENT_H | 20 | #ifndef KWIN_MOCK_TABBOX_CLIENT_H | ||
21 | #define KWIN_MOCK_TABBOX_CLIENT_H | 21 | #define KWIN_MOCK_TABBOX_CLIENT_H | ||
22 | 22 | | |||
23 | #include "../../tabbox/tabboxhandler.h" | 23 | #include "../../tabbox/tabboxhandler.h" | ||
24 | 24 | | |||
25 | #include <QIcon> | 25 | #include <QIcon> | ||
26 | #include <QUuid> | ||||
26 | 27 | | |||
27 | namespace KWin | 28 | namespace KWin | ||
28 | { | 29 | { | ||
29 | class MockTabBoxClient : public TabBox::TabBoxClient | 30 | class MockTabBoxClient : public TabBox::TabBoxClient | ||
30 | { | 31 | { | ||
31 | public: | 32 | public: | ||
32 | explicit MockTabBoxClient(QString caption, WId id); | 33 | explicit MockTabBoxClient(QString caption, WId id); | ||
33 | virtual bool isMinimized() const { | 34 | virtual bool isMinimized() const { | ||
Show All 26 Lines | |||||
60 | } | 61 | } | ||
61 | virtual int y() const { | 62 | virtual int y() const { | ||
62 | return 0; | 63 | return 0; | ||
63 | } | 64 | } | ||
64 | virtual QIcon icon() const { | 65 | virtual QIcon icon() const { | ||
65 | return QIcon(); | 66 | return QIcon(); | ||
66 | } | 67 | } | ||
67 | 68 | | |||
69 | QUuid internalId() const override { | ||||
70 | return QUuid{}; | ||||
71 | } | ||||
72 | | ||||
68 | private: | 73 | private: | ||
69 | QString m_caption; | 74 | QString m_caption; | ||
70 | WId m_wId; | 75 | WId m_wId; | ||
71 | }; | 76 | }; | ||
72 | } // namespace KWin | 77 | } // namespace KWin | ||
73 | #endif | 78 | #endif |