SideBar is now constructed by the framework widget factory

Means it can be overridden by the user
This commit is contained in:
Sergio Martins
2020-09-20 18:08:23 +01:00
parent eb1f4c5a14
commit a6c4730c44
3 changed files with 18 additions and 2 deletions

View File

@@ -23,10 +23,12 @@
# include "widgets/FrameWidget_p.h"
# include "widgets/TitleBarWidget_p.h"
# include "widgets/TabBarWidget_p.h"
# include "widgets/SideBarWidget_p.h"
# include "widgets/TabWidgetWidget_p.h"
# include "multisplitter/Separator_qwidget.h"
# include "widgets/FloatingWindowWidget_p.h"
# include "indicators/SegmentedIndicators_p.h"
# include <QRubberBand>
#else
# include "quick/FrameQuick_p.h"
@@ -102,6 +104,11 @@ QWidgetOrQuick *DefaultWidgetFactory::createRubberBand(QWidgetOrQuick *parent) c
return new QRubberBand(QRubberBand::Rectangle, parent);
}
SideBar *DefaultWidgetFactory::createSideBar(SideBarLocation loc, MainWindowBase *parent) const
{
return new SideBarWidget(loc, parent);
}
#else
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options) const