Refactored InsightWindow class to inherit from QMainWindow, as opposed to a standard QObject
Replaced QWidget left panel with new PanelWidget instance Also introduced a bottom panel (empty ATM) Removed obsolete widgets Added panel size adjustment on window resize
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
|
||||
#include <QtUiTools>
|
||||
|
||||
#include "Widgets/PanelWidget.hpp"
|
||||
#include "Widgets/RotatableLabel.hpp"
|
||||
#include "Widgets/SlidingHandleWidget.hpp"
|
||||
#include "Widgets/SvgWidget.hpp"
|
||||
#include "Widgets/SvgToolButton.hpp"
|
||||
#include "Widgets/ExpandingWidget.hpp"
|
||||
#include "Widgets/ExpandingHeightScrollAreaWidget.hpp"
|
||||
#include "Widgets/TargetWidgets/TargetPackageWidgetContainer.hpp"
|
||||
|
||||
@@ -17,6 +16,15 @@ using namespace Bloom::Widgets;
|
||||
|
||||
UiLoader::UiLoader(QObject* parent): QUiLoader(parent) {
|
||||
this->customWidgetConstructorsByWidgetName = decltype(this->customWidgetConstructorsByWidgetName) {
|
||||
{
|
||||
"PanelWidget",
|
||||
[this](QWidget* parent, const QString& name) {
|
||||
auto widget = new PanelWidget(parent);
|
||||
widget->setObjectName(name);
|
||||
widget->setStyleSheet(parent->styleSheet());
|
||||
return widget;
|
||||
}
|
||||
},
|
||||
{
|
||||
"RotatableLabel",
|
||||
[this](QWidget* parent, const QString& name) {
|
||||
@@ -26,24 +34,6 @@ UiLoader::UiLoader(QObject* parent): QUiLoader(parent) {
|
||||
return widget;
|
||||
}
|
||||
},
|
||||
{
|
||||
"SlidingHandleWidget",
|
||||
[this](QWidget* parent, const QString& name) {
|
||||
auto widget = new SlidingHandleWidget(parent);
|
||||
widget->setObjectName(name);
|
||||
widget->setStyleSheet(parent->styleSheet());
|
||||
return widget;
|
||||
}
|
||||
},
|
||||
{
|
||||
"ExpandingWidget",
|
||||
[this](QWidget* parent, const QString& name) {
|
||||
auto widget = new ExpandingWidget(parent);
|
||||
widget->setObjectName(name);
|
||||
widget->setStyleSheet(parent->styleSheet());
|
||||
return widget;
|
||||
}
|
||||
},
|
||||
{
|
||||
"ExpandingHeightScrollAreaWidget",
|
||||
[this](QWidget* parent, const QString& name) {
|
||||
|
||||
Reference in New Issue
Block a user