Skip to content

Commit 21badd5

Browse files
add QFlag operators (#376)
1 parent a110d53 commit 21badd5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/DockAreaWidget.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ public Q_SLOTS:
367367
*/
368368
void viewToggled(bool Open);
369369
}; // class DockAreaWidget
370-
}
371-
// namespace ads
370+
} // namespace ads
371+
372+
Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockAreaWidget::DockAreaFlags)
372373
//-----------------------------------------------------------------------------
373374
#endif // DockAreaWidgetH

src/DockManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,5 +617,7 @@ public Q_SLOTS:
617617
void focusedDockWidgetChanged(ads::CDockWidget* old, ads::CDockWidget* now);
618618
}; // class DockManager
619619
} // namespace ads
620+
621+
Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockManager::ConfigFlags)
620622
//-----------------------------------------------------------------------------
621623
#endif // DockManagerH

src/DockWidget.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ public Q_SLOTS:
600600
*/
601601
void featuresChanged(ads::CDockWidget::DockWidgetFeatures features);
602602
}; // class DockWidget
603-
}
604-
// namespace ads
603+
} // namespace ads
604+
605+
Q_DECLARE_OPERATORS_FOR_FLAGS(ads::CDockWidget::DockWidgetFeatures)
605606
//-----------------------------------------------------------------------------
606607
#endif // DockWidgetH

src/ads_globals.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,5 +308,6 @@ void repolishStyle(QWidget* w, eRepolishChildOptions Options = RepolishIgnoreChi
308308
} // namespace internal
309309
} // namespace ads
310310

311+
Q_DECLARE_OPERATORS_FOR_FLAGS(ads::DockWidgetAreas)
311312
//---------------------------------------------------------------------------
312313
#endif // ads_globalsH

0 commit comments

Comments
 (0)