From 37fc20d3c0b70a4a4641bccfab428220377d9982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 13 Oct 2015 09:44:50 +0200 Subject: [PATCH] Move enum Sizemode from Client to AbstractClient Required to add e.g. sizeForClientSize and adjustedSize to AbstractClient. --- abstract_client.h | 7 +++++++ client.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/abstract_client.h b/abstract_client.h index 3fc66fbd59..ba57f680f5 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -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; diff --git a/client.h b/client.h index 4efcf7d40d..451e5157e1 100644 --- a/client.h +++ b/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;