Changeset View
Changeset View
Standalone View
Standalone View
autotests/mock_abstract_client.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | AbstractClient::AbstractClient(QObject *parent) | 25 | AbstractClient::AbstractClient(QObject *parent) | ||
26 | : QObject(parent) | 26 | : QObject(parent) | ||
27 | , m_active(false) | 27 | , m_active(false) | ||
28 | , m_screen(0) | 28 | , m_screen(0) | ||
29 | , m_fullscreen(false) | 29 | , m_fullscreen(false) | ||
30 | , m_hiddenInternal(false) | 30 | , m_hiddenInternal(false) | ||
31 | , m_keepBelow(false) | 31 | , m_keepBelow(false) | ||
32 | , m_geometry() | 32 | , m_frameGeometry() | ||
33 | , m_resize(false) | 33 | , m_resize(false) | ||
34 | { | 34 | { | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | AbstractClient::~AbstractClient() = default; | 37 | AbstractClient::~AbstractClient() = default; | ||
38 | 38 | | |||
39 | bool AbstractClient::isActive() const | 39 | bool AbstractClient::isActive() const | ||
40 | { | 40 | { | ||
Show All 36 Lines | 76 | { | |||
77 | return m_hiddenInternal; | 77 | return m_hiddenInternal; | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | void AbstractClient::setHiddenInternal(bool set) | 80 | void AbstractClient::setHiddenInternal(bool set) | ||
81 | { | 81 | { | ||
82 | m_hiddenInternal = set; | 82 | m_hiddenInternal = set; | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void AbstractClient::setGeometry(const QRect &rect) | 85 | void AbstractClient::setFrameGeometry(const QRect &rect) | ||
86 | { | 86 | { | ||
87 | m_geometry = rect; | 87 | m_frameGeometry = rect; | ||
88 | emit geometryChanged(); | 88 | emit geometryChanged(); | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | QRect AbstractClient::geometry() const | 91 | QRect AbstractClient::frameGeometry() const | ||
92 | { | 92 | { | ||
93 | return m_geometry; | 93 | return m_frameGeometry; | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | bool AbstractClient::keepBelow() const | 96 | bool AbstractClient::keepBelow() const | ||
97 | { | 97 | { | ||
98 | return m_keepBelow; | 98 | return m_keepBelow; | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | void AbstractClient::setKeepBelow(bool keepBelow) | 101 | void AbstractClient::setKeepBelow(bool keepBelow) | ||
Show All 16 Lines |