From: Michal MalĂ˝ Date: Fri, 26 Jul 2013 08:33:17 +0000 (+0200) Subject: Remove all pages from EffectSettings QStackedWidget X-Git-Tag: 0.2a~6 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=3ed4f764eeb64dd412a0230d066b7319b1288410;p=FFBChecker.git Remove all pages from EffectSettings QStackedWidget --- 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 @@ - - - - +