Add Layouting::Config

To host many of the scatered static member variables which
held some settings that rarely change
This commit is contained in:
Sergio Martins
2020-05-23 18:40:20 +01:00
parent 2527b39368
commit 9ad6eefa7a
8 changed files with 196 additions and 37 deletions

View File

@@ -20,6 +20,7 @@
#include "Item_p.h"
#include "Separator_p.h"
#include "Config.h"
#include <QEvent>
#include <QDebug>
@@ -2766,7 +2767,7 @@ void ItemContainer::Private::updateSeparators()
newSeparators.push_back(separator);
m_separators.removeOne(separator);
} else {
separator = Separator::createSeparator(q->hostWidget());
separator = Config::self().createSeparator(q->hostWidget());
separator->init(q, m_orientation);
newSeparators.push_back(separator);
}