From 21badd592e083d9b53816e974c12c5766fc24fd6 Mon Sep 17 00:00:00 2001 From: anoy Date: Fri, 26 Nov 2021 19:09:09 +0100 Subject: [PATCH] add QFlag operators (#376) --- src/DockAreaWidget.h | 5 +++-- src/DockManager.h | 2 ++ src/DockWidget.h | 5 +++-- src/ads_globals.h | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/DockAreaWidget.h b/src/DockAreaWidget.h index 5361926..eaf290c 100644 --- a/src/DockAreaWidget.h +++ b/src/DockAreaWidget.h @@ -367,7 +367,8 @@ Q_SIGNALS: */ void viewToggled(bool Open); }; // class DockAreaWidget -} - // namespace ads +} // namespace ads + +Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockAreaWidget::DockAreaFlags) //----------------------------------------------------------------------------- #endif // DockAreaWidgetH diff --git a/src/DockManager.h b/src/DockManager.h index d549a68..9ebf8a2 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -617,5 +617,7 @@ Q_SIGNALS: void focusedDockWidgetChanged(ads::CDockWidget* old, ads::CDockWidget* now); }; // class DockManager } // namespace ads + +Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockManager::ConfigFlags) //----------------------------------------------------------------------------- #endif // DockManagerH diff --git a/src/DockWidget.h b/src/DockWidget.h index 39693f0..c20028b 100644 --- a/src/DockWidget.h +++ b/src/DockWidget.h @@ -600,7 +600,8 @@ Q_SIGNALS: */ void featuresChanged(ads::CDockWidget::DockWidgetFeatures features); }; // class DockWidget -} - // namespace ads +} // namespace ads + +Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockWidget::DockWidgetFeatures) //----------------------------------------------------------------------------- #endif // DockWidgetH diff --git a/src/ads_globals.h b/src/ads_globals.h index 9705544..777bd82 100644 --- a/src/ads_globals.h +++ b/src/ads_globals.h @@ -308,5 +308,6 @@ void repolishStyle(QWidget* w, eRepolishChildOptions Options = RepolishIgnoreChi } // namespace internal } // namespace ads +Q_DECLARE_OPERATORS_FOR_FLAGS(ads::DockWidgetAreas) //--------------------------------------------------------------------------- #endif // ads_globalsH