Created custom PushButton widget and added custom styleName property for styling primary buttons

This commit is contained in:
Nav
2022-12-21 15:39:18 +00:00
parent fc883d5d1e
commit 47b9c53033
13 changed files with 80 additions and 33 deletions

View File

@@ -7,6 +7,7 @@
#include "Widgets/RotatableLabel.hpp"
#include "Widgets/LabeledSeparator.hpp"
#include "Widgets/TextInput.hpp"
#include "Widgets/PushButton.hpp"
#include "Widgets/SvgWidget.hpp"
#include "Widgets/SvgToolButton.hpp"
#include "Widgets/ExpandingHeightScrollAreaWidget.hpp"
@@ -54,6 +55,15 @@ namespace Bloom
return widget;
}
},
{
"PushButton",
[this] (QWidget* parent, const QString& name) {
auto* widget = new PushButton(parent);
widget->setObjectName(name);
widget->setStyleSheet(parent->styleSheet());
return widget;
}
},
{
"ExpandingHeightScrollAreaWidget",
[this] (QWidget* parent, const QString& name) {