diff --git a/GUI/View/Fit/MinimizerSettingsWidget.cpp b/GUI/View/Fit/MinimizerSettingsWidget.cpp index 9f1e44dff2680854d660ecf15dfc255d6aa3e825..ec635f0f916b2c5df0c1d1ea6ce9da193daea7b5 100644 --- a/GUI/View/Fit/MinimizerSettingsWidget.cpp +++ b/GUI/View/Fit/MinimizerSettingsWidget.cpp @@ -31,8 +31,6 @@ MinimizerSettingsWidget::MinimizerSettingsWidget(QWidget* parent) , m_containerItem(nullptr) { setWindowTitle(QLatin1String("Minimizer Settings")); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing m_mainLayout = new QFormLayout(this); m_mainLayout->setContentsMargins(8, 8, 8, 8); diff --git a/GUI/View/Import/RealDataSelectorWidget.cpp b/GUI/View/Import/RealDataSelectorWidget.cpp index fe324de53db66e6ff885f8cba5164e3c3c56955a..5e860a93fadad27955cc8bee835f067dd3e1472e 100644 --- a/GUI/View/Import/RealDataSelectorWidget.cpp +++ b/GUI/View/Import/RealDataSelectorWidget.cpp @@ -47,9 +47,6 @@ RealDataSelectorWidget::RealDataSelectorWidget(QWidget* parent, ProjectDocument* , m_renameDataAction(new QAction(this)) , m_removeDataAction(new QAction(this)) { - setProperty("stylable", true); - setAttribute(Qt::WA_StyledBackground, true); - setMinimumSize(250, 600); setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); setWindowTitle("RealDataSelectorWidget"); diff --git a/GUI/View/Instrument/AxisPropertyEditor.cpp b/GUI/View/Instrument/AxisPropertyEditor.cpp index 9641a838f30fd99295e423d4b1b22c52e99b5f00..97249a6fb02286bbeb3390b04604a1de97b7a57e 100644 --- a/GUI/View/Instrument/AxisPropertyEditor.cpp +++ b/GUI/View/Instrument/AxisPropertyEditor.cpp @@ -27,7 +27,6 @@ AxisPropertyEditor::AxisPropertyEditor(QWidget* parent, const QString& groupTitl : QGroupBox(groupTitle, parent) , m_axisProperty(axisProperty) { - setProperty("subgroup", true); // for stylesheet addressing auto* formLayout = new QFormLayout(this); formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint); diff --git a/GUI/View/Instrument/DistributionEditor.cpp b/GUI/View/Instrument/DistributionEditor.cpp index a163c26d2e7aa6617a10691bc8fdb3d50ac63321..9ce07aefb8709668585ecfa9f32387b729892483 100644 --- a/GUI/View/Instrument/DistributionEditor.cpp +++ b/GUI/View/Instrument/DistributionEditor.cpp @@ -170,7 +170,6 @@ DistributionEditor::DistributionEditor(const QString& title, BeamDistributionItem* item) : QGroupBox(title, parent) { - setProperty("subgroup", true); // for stylesheet addressing auto* hLayout = new QHBoxLayout(this); m_selector = new DistributionSelector(mean_config, distributions, this, item); hLayout->addWidget(m_selector); diff --git a/GUI/View/Instrument/FootprintCorrectionEditor.cpp b/GUI/View/Instrument/FootprintCorrectionEditor.cpp index a11d678b42aebb1bf7bc3d15e9d7ba30f2132cf5..db410ac6d5fb8ec1153d31d6770eb34e53cac091 100644 --- a/GUI/View/Instrument/FootprintCorrectionEditor.cpp +++ b/GUI/View/Instrument/FootprintCorrectionEditor.cpp @@ -25,7 +25,6 @@ FootprintCorrectionEditor::FootprintCorrectionEditor(QWidget* parent, ScanItem* , m_item(item) { ASSERT(item); - setProperty("subgroup", true); // for stylesheet addressing m_formLayout = new QFormLayout(this); m_formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint); auto* typeCombo = GUI::Util::createComboBoxFromProperty(item->footprintSelection(), [=](int) { diff --git a/GUI/View/Instrument/InclinationAnglesEditor.cpp b/GUI/View/Instrument/InclinationAnglesEditor.cpp index 41e0f47d98748faf5200e6a0b0edefe8263a4e59..29e0529bd5ffe32f776d20126dbdda6c9099c63a 100644 --- a/GUI/View/Instrument/InclinationAnglesEditor.cpp +++ b/GUI/View/Instrument/InclinationAnglesEditor.cpp @@ -27,8 +27,6 @@ InclinationAnglesEditor::InclinationAnglesEditor(QWidget* parent, SpecularBeamIn : QGroupBox("Inclination angles [deg]", parent) , m_item(item) { - setProperty("subgroup", true); // for stylesheet addressing - auto* hLayout = new QHBoxLayout(this); hLayout->setSpacing(50); auto* gform = new QFormLayout; diff --git a/GUI/View/Instrument/InstrumentLibraryEditor.cpp b/GUI/View/Instrument/InstrumentLibraryEditor.cpp index 17248f3ec40c161e286f57db325f26942ab236f3..702be5c3c9c0d4629f41213af610e5387e82ce05 100644 --- a/GUI/View/Instrument/InstrumentLibraryEditor.cpp +++ b/GUI/View/Instrument/InstrumentLibraryEditor.cpp @@ -43,8 +43,6 @@ InstrumentLibraryEditor::InstrumentLibraryEditor(QWidget* parent, { m_ui->setupUi(this); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing setWindowIcon(QIcon(":/images/library.svg")); setWindowFlag(Qt::WindowContextHelpButtonHint, false); @@ -191,9 +189,6 @@ void InstrumentLibraryEditor::createWidgetsForCurrentInstrument() QWidget* w = new QWidget(m_ui->scrollArea); auto* layout = new QVBoxLayout(w); - w->setAttribute(Qt::WA_StyledBackground, true); - w->setProperty("stylable", true); // for stylesheet addressing - auto* g = new QGroupBox(m_ui->scrollArea); g->setTitle(QString("Information (%1 instrument)").arg(currentInstrument->instrumentType())); diff --git a/GUI/View/Instrument/InstrumentView.cpp b/GUI/View/Instrument/InstrumentView.cpp index 560e4d832b319faa8b2071772d714bdbf2374190..2f1171787b1021d57b1603054ac3477fe073c986 100644 --- a/GUI/View/Instrument/InstrumentView.cpp +++ b/GUI/View/Instrument/InstrumentView.cpp @@ -40,9 +40,6 @@ InstrumentView::InstrumentView(QWidget* parent, ProjectDocument* document) : QWidget(parent) , m_document(document) { - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing - auto* horizontalLayout = new QHBoxLayout; m_instrumentListView = new InstrumentListView(document, this); horizontalLayout->addWidget(m_instrumentListView); @@ -101,9 +98,6 @@ void InstrumentView::createWidgetsForCurrentInstrument() QWidget* w = new QWidget(m_scrollArea); auto* layout = new QVBoxLayout(w); - w->setAttribute(Qt::WA_StyledBackground, true); - w->setProperty("stylable", true); // for stylesheet addressing - auto* g = new QGroupBox(m_scrollArea); g->setTitle(QString("Information (%1 instrument)").arg(currentInstrument->instrumentType())); g->setMaximumHeight(200); diff --git a/GUI/View/Instrument/RectangularDetectorEditor.cpp b/GUI/View/Instrument/RectangularDetectorEditor.cpp index f1eac77afd8c1ea5e4575f6515bfb3d4063de03b..4411a7358bc094f1ee598e229643c33d2acee314 100644 --- a/GUI/View/Instrument/RectangularDetectorEditor.cpp +++ b/GUI/View/Instrument/RectangularDetectorEditor.cpp @@ -39,7 +39,6 @@ RectangularDetectorEditor::RectangularDetectorEditor(QWidget* parent, // -- x-axis controls auto* xAxisGroupBox = new QGroupBox("X axis", this); - xAxisGroupBox->setProperty("subgroup", true); // for stylesheet addressing auto* xAxisFormLayout = new QFormLayout(xAxisGroupBox); auto* xAxisNbinsSpinBox = new SafeSpinBox; @@ -69,7 +68,6 @@ RectangularDetectorEditor::RectangularDetectorEditor(QWidget* parent, // -- y-axis controls auto* yAxisGroupBox = new QGroupBox("Y axis", this); - yAxisGroupBox->setProperty("subgroup", true); // for stylesheet addressing auto* yAxisFormLayout = new QFormLayout(yAxisGroupBox); auto* yAxisNbinsSpinBox = new SafeSpinBox; diff --git a/GUI/View/Instrument/ResolutionFunctionEditor.cpp b/GUI/View/Instrument/ResolutionFunctionEditor.cpp index e50761385cb526de907e2bf1e8890431ddc5a3a4..e69cd6f92a170266e72ff648d9f59dd45948d0a6 100644 --- a/GUI/View/Instrument/ResolutionFunctionEditor.cpp +++ b/GUI/View/Instrument/ResolutionFunctionEditor.cpp @@ -27,7 +27,6 @@ ResolutionFunctionEditor::ResolutionFunctionEditor(Unit unit, QWidget* parent, D , m_item(item) { ASSERT(item); - setProperty("subgroup", true); // for stylesheet addressing m_formLayout = new QFormLayout(this); m_formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint); diff --git a/GUI/View/Mask/MaskEditorPropertyPanel.cpp b/GUI/View/Mask/MaskEditorPropertyPanel.cpp index 79d71c18bfd8768bbaa9e79386444a28d0888cce..6386d5c63633815ad498a1e385d8abcfdec053e0 100644 --- a/GUI/View/Mask/MaskEditorPropertyPanel.cpp +++ b/GUI/View/Mask/MaskEditorPropertyPanel.cpp @@ -41,8 +41,6 @@ MaskEditorPropertyPanel::MaskEditorPropertyPanel(QWidget* parent) { setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding); setObjectName(QLatin1String("MaskEditorToolPanel")); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing m_listView->setContextMenuPolicy(Qt::CustomContextMenu); connect(m_listView, &QListView::customContextMenuRequested, this, diff --git a/GUI/View/PlotUtil/DataPropertyWidget.cpp b/GUI/View/PlotUtil/DataPropertyWidget.cpp index 319118a8cd712b7e2f2ee8437f52387a5db2a861..b497ce325dccb9f3259b8a8a49afc28ef969ba44 100644 --- a/GUI/View/PlotUtil/DataPropertyWidget.cpp +++ b/GUI/View/PlotUtil/DataPropertyWidget.cpp @@ -21,8 +21,6 @@ DataPropertyWidget::DataPropertyWidget(QWidget* parent) : DataAccessWidget(parent) { setWindowTitle("Properties"); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing m_mainLayout = new QFormLayout(this); m_mainLayout->setContentsMargins(8, 20, 8, 8); diff --git a/GUI/View/SampleDesigner/LayerOrientedSampleEditor.cpp b/GUI/View/SampleDesigner/LayerOrientedSampleEditor.cpp index 1db7546513c687882cabb2d132faf6f4ebe940ba..25e11463cdd82013e54d8eaee96931634aa0d614 100644 --- a/GUI/View/SampleDesigner/LayerOrientedSampleEditor.cpp +++ b/GUI/View/SampleDesigner/LayerOrientedSampleEditor.cpp @@ -35,9 +35,6 @@ LayerOrientedSampleEditor::LayerOrientedSampleEditor(QWidget* parent, ProjectDoc , m_currentSample(nullptr) , m_document(document) { - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing - m_scrollArea = new QScrollArea(this); m_scrollArea->setWidgetResizable(true); m_scrollArea->setWidget(createEmptyWidget()); @@ -180,7 +177,6 @@ void LayerOrientedSampleEditor::createLayerColors() // #baLayerEditor move to be QWidget* LayerOrientedSampleEditor::createEmptyWidget() { auto* emptyWidget = new QWidget(this); - emptyWidget->setProperty("stylable", true); // for stylesheet addressing auto* btn = new QPushButton("Create sample", emptyWidget); connect(btn, &QPushButton::clicked, this, &LayerOrientedSampleEditor::requestCreateNewSample); diff --git a/GUI/View/Tool/GroupBoxCollapser.cpp b/GUI/View/Tool/GroupBoxCollapser.cpp index f44e72c433c62cb95bea951429afd0832b92fb65..c2159d892a1916429427ca3d90de23540f0117a9 100644 --- a/GUI/View/Tool/GroupBoxCollapser.cpp +++ b/GUI/View/Tool/GroupBoxCollapser.cpp @@ -115,7 +115,6 @@ GroupBoxCollapser::GroupBoxCollapser(QGroupBox* groupBox) groupBox->layout()->setMenuBar(m_titleWidget); groupBox->setTitle(""); - groupBox->setProperty("collapsible", true); // helps to distinguish GroupBoxes in stylesheets connect(m_toggleButton, &QAbstractButton::clicked, this, &GroupBoxCollapser::toggle, Qt::UniqueConnection); diff --git a/GUI/View/Toplevel/SimulationView.cpp b/GUI/View/Toplevel/SimulationView.cpp index 5ab15c0abd384b160f55557f953c4b3c9617cd03..54e2462b571682cab302f467e2a68c4379ad6726 100644 --- a/GUI/View/Toplevel/SimulationView.cpp +++ b/GUI/View/Toplevel/SimulationView.cpp @@ -38,9 +38,6 @@ SimulationView::SimulationView(QWidget* parent, ProjectDocument* document) { m_ui->setupUi(this); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing - GroupBoxCollapser::installIntoGroupBox(m_ui->groupBox_3); GroupBoxCollapser::installIntoGroupBox(m_ui->groupBox_2); GroupBoxCollapser::installIntoGroupBox(m_ui->groupBox); diff --git a/GUI/View/Toplevel/WelcomeView.cpp b/GUI/View/Toplevel/WelcomeView.cpp index 72d70434c228019978b0275a6e6c5b03b324455d..ec2c48b88dd7e385939f7a0e4daf160b42d8d12f 100644 --- a/GUI/View/Toplevel/WelcomeView.cpp +++ b/GUI/View/Toplevel/WelcomeView.cpp @@ -30,9 +30,6 @@ WelcomeView::WelcomeView(QWidget* parent) { m_ui->setupUi(this); - setAttribute(Qt::WA_StyledBackground, true); - setProperty("stylable", true); // for stylesheet addressing - GroupBoxCollapser::installIntoGroupBox(m_ui->groupBox_2); QPalette palette = this->palette();