From 3ed4f764eeb64dd412a0230d066b7319b1288410 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 26 Jul 2013 10:33:17 +0200 Subject: [PATCH] Remove all pages from EffectSettings QStackedWidget --- mainwindow.cpp | 4 ---- mainwindow.ui | 32 +++++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9cefcfb..69ff348 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -15,10 +15,6 @@ MainWindow::MainWindow(std::shared_ptr prober, QWidget* parent) : { ui->setupUi(this); - /* HACK: Remove all default widgets from the stack */ - for (int i = 0; i < ui->qstw_effectSpecifics->count(); i++) - ui->qstw_effectSpecifics->removeWidget(ui->qstw_effectSpecifics->widget(i)); - m_constantEffSet = new ConstantEffectSettings(); m_periodicEffSet = new PeriodicEffectSettings(); ui->qstw_effectSpecifics->addWidget(m_constantEffSet); diff --git a/mainwindow.ui b/mainwindow.ui index 2d8b1e9..7183eae 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -103,7 +103,14 @@ - + + + 0 + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + @@ -124,7 +131,14 @@ - + + + 0 + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + @@ -134,7 +148,14 @@ - + + + 0 + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + @@ -160,10 +181,7 @@ - - - - + -- 2.43.5