refactor: Move the DefaultSizingMode enum into InitialSizingOption

It's another enum that affects the initial sizing.
No behaviour was change in this commit.

Needed for issue #95
This commit is contained in:
Sergio Martins
2020-12-27 23:44:36 +00:00
parent 5582f37a18
commit db928a0fca
7 changed files with 59 additions and 42 deletions

View File

@@ -70,8 +70,7 @@ public:
*/
void addWidget(QWidgetOrQuick *widget, KDDockWidgets::Location location,
Frame *relativeTo = nullptr,
Layouting::Item::DefaultSizeMode = Layouting::Item::DefaultSizeMode::Fair,
InitialOption option = {});
InitialOption option = DefaultSizeMode::Fair);
/**
* Adds an entire MultiSplitter into this layout. The donor MultiSplitter will be deleted
@@ -81,7 +80,7 @@ public:
*/
void addMultiSplitter(MultiSplitter *splitter, KDDockWidgets::Location location,
Frame *relativeTo = nullptr,
Layouting::Item::DefaultSizeMode = Layouting::Item::DefaultSizeMode::Fair);
InitialOption option = DefaultSizeMode::Fair);
/**
* @brief Removes an item from this MultiSplitter.