Move ::titlebarPosition and enum Position to AbstractClient
This commit is contained in:
parent
e5734f9e6c
commit
6feb1c6604
2 changed files with 18 additions and 16 deletions
|
@ -109,6 +109,23 @@ public:
|
|||
virtual void growVertical();
|
||||
virtual void shrinkVertical();
|
||||
|
||||
/**
|
||||
* These values represent positions inside an area
|
||||
*/
|
||||
enum Position {
|
||||
// without prefix, they'd conflict with Qt::TopLeftCorner etc. :(
|
||||
PositionCenter = 0x00,
|
||||
PositionLeft = 0x01,
|
||||
PositionRight = 0x02,
|
||||
PositionTop = 0x04,
|
||||
PositionBottom = 0x08,
|
||||
PositionTopLeft = PositionLeft | PositionTop,
|
||||
PositionTopRight = PositionRight | PositionTop,
|
||||
PositionBottomLeft = PositionLeft | PositionBottom,
|
||||
PositionBottomRight = PositionRight | PositionBottom
|
||||
};
|
||||
virtual Position titlebarPosition() const = 0;
|
||||
|
||||
// TODO: remove boolean trap
|
||||
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);
|
||||
|
||||
|
|
17
client.h
17
client.h
|
@ -620,22 +620,7 @@ public:
|
|||
bool isClientSideDecorated() const;
|
||||
bool wantsShadowToBeRendered() const override;
|
||||
|
||||
/**
|
||||
* These values represent positions inside an area
|
||||
*/
|
||||
enum Position {
|
||||
// without prefix, they'd conflict with Qt::TopLeftCorner etc. :(
|
||||
PositionCenter = 0x00,
|
||||
PositionLeft = 0x01,
|
||||
PositionRight = 0x02,
|
||||
PositionTop = 0x04,
|
||||
PositionBottom = 0x08,
|
||||
PositionTopLeft = PositionLeft | PositionTop,
|
||||
PositionTopRight = PositionRight | PositionTop,
|
||||
PositionBottomLeft = PositionLeft | PositionBottom,
|
||||
PositionBottomRight = PositionRight | PositionBottom
|
||||
};
|
||||
Position titlebarPosition() const;
|
||||
Position titlebarPosition() const override;
|
||||
|
||||
void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue