]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Remove all pages from EffectSettings QStackedWidget
authorMichal Malý <madcatxster@prifuk.cz>
Fri, 26 Jul 2013 08:33:17 +0000 (10:33 +0200)
committerMichal Malý <madcatxster@prifuk.cz>
Fri, 26 Jul 2013 08:33:17 +0000 (10:33 +0200)
mainwindow.cpp
mainwindow.ui

index 9cefcfbc24b225753974e4db733081148a704620..69ff348acf93b91aa95ca96ac278ae3a1206f409 100644 (file)
@@ -15,10 +15,6 @@ MainWindow::MainWindow(std::shared_ptr<DeviceProber> 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);
index 2d8b1e9bf4eaed40290c1a7fb586862156937eb4..7183eaea43bd90810e8ad04c05703a7b14b4a753 100644 (file)
        </widget>
       </item>
       <item row="0" column="1">
-       <widget class="QLineEdit" name="qle_direction"/>
+       <widget class="QLineEdit" name="qle_direction">
+        <property name="text">
+         <string>0</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+        </property>
+       </widget>
       </item>
      </layout>
     </item>
        </widget>
       </item>
       <item row="0" column="1">
-       <widget class="QLineEdit" name="qle_replayLength"/>
+       <widget class="QLineEdit" name="qle_replayLength">
+        <property name="text">
+         <string>0</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+        </property>
+       </widget>
       </item>
       <item row="1" column="0">
        <widget class="QLabel" name="ql_replayDelay">
        </widget>
       </item>
       <item row="1" column="1">
-       <widget class="QLineEdit" name="qle_replayDelay"/>
+       <widget class="QLineEdit" name="qle_replayDelay">
+        <property name="text">
+         <string>0</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+        </property>
+       </widget>
       </item>
      </layout>
     </item>
      </layout>
     </item>
     <item>
-     <widget class="QStackedWidget" name="qstw_effectSpecifics">
-      <widget class="QWidget" name="page"/>
-      <widget class="QWidget" name="page_2"/>
-     </widget>
+     <widget class="QStackedWidget" name="qstw_effectSpecifics"/>
     </item>
     <item>
      <layout class="QHBoxLayout" name="horizontalLayout">