Created custom PushButton widget and added custom styleName property for styling primary buttons
This commit is contained in:
@@ -77,9 +77,9 @@ namespace Bloom::Widgets
|
||||
|
||||
this->stackedFormLayout = this->container->findChild<QStackedLayout*>("stacked-form-layout");
|
||||
|
||||
this->applyButton = this->container->findChild<QPushButton*>("apply-btn");
|
||||
this->helpButton = this->container->findChild<QPushButton*>("help-btn");
|
||||
this->closeButton = this->container->findChild<QPushButton*>("close-btn");
|
||||
this->applyButton = this->container->findChild<PushButton*>("apply-btn");
|
||||
this->helpButton = this->container->findChild<PushButton*>("help-btn");
|
||||
this->closeButton = this->container->findChild<PushButton*>("close-btn");
|
||||
|
||||
regionSelectorToolBar->setContentsMargins(0, 0, 0, 0);
|
||||
this->regionItemScrollArea->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <QShowEvent>
|
||||
@@ -17,6 +16,7 @@
|
||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/ExcludedMemoryRegion.hpp"
|
||||
|
||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/SvgToolButton.hpp"
|
||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/PushButton.hpp"
|
||||
#include "RegionItem.hpp"
|
||||
#include "FocusedRegionItem.hpp"
|
||||
#include "ExcludedRegionItem.hpp"
|
||||
@@ -51,9 +51,9 @@ namespace Bloom::Widgets
|
||||
QWidget* container = nullptr;
|
||||
QWidget* regionSelector = nullptr;
|
||||
|
||||
QPushButton* applyButton = nullptr;
|
||||
QPushButton* helpButton = nullptr;
|
||||
QPushButton* closeButton = nullptr;
|
||||
PushButton* applyButton = nullptr;
|
||||
PushButton* helpButton = nullptr;
|
||||
PushButton* closeButton = nullptr;
|
||||
|
||||
SvgToolButton* addRegionButton = nullptr;
|
||||
QAction* addFocusedRegionMenuAction = nullptr;
|
||||
|
||||
@@ -130,8 +130,3 @@
|
||||
border-top: 1px solid #2F2F2D;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
#apply-btn {
|
||||
background-color: #353C41;
|
||||
border: 1px solid #454C52;
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="help-btn">
|
||||
<widget class="PushButton" name="help-btn">
|
||||
<property name="text">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
@@ -214,14 +214,17 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="close-btn">
|
||||
<widget class="PushButton" name="close-btn">
|
||||
<property name="text">
|
||||
<string>Close</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="apply-btn">
|
||||
<widget class="PushButton" name="apply-btn">
|
||||
<property name="styleName">
|
||||
<string>primary</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user