New LabeledSeparator widget

This commit is contained in:
Nav
2021-12-18 18:02:01 +00:00
parent 339074e0dd
commit fc5cd3dc14
4 changed files with 113 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
// Custom widgets
#include "Widgets/PanelWidget.hpp"
#include "Widgets/RotatableLabel.hpp"
#include "Widgets/LabeledSeparator.hpp"
#include "Widgets/SvgWidget.hpp"
#include "Widgets/SvgToolButton.hpp"
#include "Widgets/ExpandingHeightScrollAreaWidget.hpp"
@@ -33,6 +34,15 @@ UiLoader::UiLoader(QObject* parent): QUiLoader(parent) {
return widget;
}
},
{
"LabeledSeparator",
[this] (QWidget* parent, const QString& name) {
auto* widget = new LabeledSeparator(parent);
widget->setObjectName(name);
widget->setStyleSheet(parent->styleSheet());
return widget;
}
},
{
"ExpandingHeightScrollAreaWidget",
[this] (QWidget* parent, const QString& name) {