16#include "core/Utils_p.h"
18#include "kddockwidgets/core/TabBar.h"
19#include "kddockwidgets/core/Stack.h"
20#include "kddockwidgets/core/FloatingWindow.h"
21#include "kddockwidgets/core/indicators/ClassicDropIndicatorOverlay.h"
22#include "kddockwidgets/core/indicators/NullDropIndicatorOverlay.h"
23#include "kddockwidgets/core/indicators/SegmentedDropIndicatorOverlay.h"
24#include "kddockwidgets/core/MainWindow.h"
25#include "kddockwidgets/core/views/ClassicIndicatorWindowViewInterface.h"
57 LayoutSaverOptions layoutSaverOptions,
67 return new QtWidgets::Group(controller, QtCommon::View_qt::asQWidget(parent));
82 return new QtWidgets::Stack(controller, QtCommon::View_qt::asQWidget(parent));
95 qobject_cast<QMainWindow *>(QtCommon::View_qt::asQWidget(parent ? parent->
view() :
nullptr));
106 return new QtWidgets::SideBar(controller, QtCommon::View_qt::asQWidget(parent));
113 qWarning() << Q_FUNC_INFO <<
"Parent not provided";
126 auto key = std::make_pair(type, dpr);
128 if (it != m_cachedIcons.
cend())
134 iconName = QStringLiteral(
"auto-hide");
137 iconName = QStringLiteral(
"unauto-hide");
150 iconName = QStringLiteral(
"dock-float");
153 iconName = QStringLiteral(
"dock-float");
163 if (!scalingFactorIsSupported(dpr)) {
164 m_cachedIcons.
insert(key, icon);
171 if (scalingFactorIsSupported(1.5))
175 m_cachedIcons.
insert(key, icon);
194 QtCommon::View_qt::asQWidget(parent));
206 m_cachedIcons.
clear();
211 return new QtWidgets::Action(dw, debugName);
Application-wide config to tune certain behaviours of the framework.
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
QMap::const_iterator cend() const const
QMap::const_iterator constFind(const Key &key) const const
QMap::iterator insert(const Key &key, const T &value)
qreal devicePixelRatioF() const const
bool isEmpty() const const
QMainWindow sub-class to enable KDDockWidgets support.