Move enum Sizemode from Client to AbstractClient
Required to add e.g. sizeForClientSize and adjustedSize to AbstractClient.
This commit is contained in:
parent
acb3a14200
commit
37fc20d3c0
2 changed files with 7 additions and 7 deletions
|
@ -397,6 +397,13 @@ public:
|
|||
void keepInArea(QRect area, bool partial = false);
|
||||
virtual QSize minSize() const;
|
||||
virtual QSize maxSize() const;
|
||||
/// How to resize the window in order to obey constains (mainly aspect ratios)
|
||||
enum Sizemode {
|
||||
SizemodeAny,
|
||||
SizemodeFixedW, ///< Try not to affect width
|
||||
SizemodeFixedH, ///< Try not to affect height
|
||||
SizemodeMax ///< Try not to make it larger in either direction
|
||||
};
|
||||
|
||||
virtual bool hasStrut() const;
|
||||
|
||||
|
|
7
client.h
7
client.h
|
@ -209,13 +209,6 @@ public:
|
|||
void releaseWindow(bool on_shutdown = false);
|
||||
void destroyClient();
|
||||
|
||||
/// How to resize the window in order to obey constains (mainly aspect ratios)
|
||||
enum Sizemode {
|
||||
SizemodeAny,
|
||||
SizemodeFixedW, ///< Try not to affect width
|
||||
SizemodeFixedH, ///< Try not to affect height
|
||||
SizemodeMax ///< Try not to make it larger in either direction
|
||||
};
|
||||
QSize adjustedSize(const QSize&, Sizemode mode = SizemodeAny) const;
|
||||
QSize adjustedSize() const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue