Remove duplicate DefaultSizeMode enum

It's already in Item_p.h
This commit is contained in:
Sergio Martins
2020-12-27 13:56:58 +00:00
parent d6dea6f426
commit a28e152a37
4 changed files with 15 additions and 18 deletions

View File

@@ -65,15 +65,6 @@ namespace KDDockWidgets
};
Q_DECLARE_FLAGS(RestoreOptions, RestoreOption)
///@brief When a widget is added we need to figure out what's a decent size for it
///This enum specifies the different ways to calculate it
enum class DefaultSizeMode {
ItemSize, ///< Simply uses the Item::size() of the item being added. Actual used size might be smaller if our window isn't big enough.
Fair, ///< Gives an equal relative size as the items that are already in the layout
FairButFloor, ///< Equal to fair, but if the item is smaller than the fair suggestion, then that small size is used.
SizePolicy, ///< Uses the item's sizeHint() and sizePolicy()
};
enum class DropIndicatorType {
Classic, ///< The default
Segmented, ///< Segmented indicators