]> git.mxchange.org Git - flightgear.git/commitdiff
Set placeholderText from code
authorJames Turner <zakalawe@mac.com>
Wed, 25 Feb 2015 23:14:02 +0000 (23:14 +0000)
committerJames Turner <zakalawe@mac.com>
Wed, 25 Feb 2015 23:14:02 +0000 (23:14 +0000)
Avoids a hard requirement of Qt 5.3; only 5.1 is
needed.

src/GUI/Launcher.ui
src/GUI/QtLauncher.cxx

index 4cd666bd9f1024a9c1d8c04d2e7d12742bdd17c4..07d5a0ea8c2c7e0be0cc7dc530f5b3df6ba1912b 100644 (file)
           </property>
           <item>
            <widget class="QPlainTextEdit" name="commandLineArgs">
-            <property name="placeholderText">
-             <string>--option=value --prop:/sim/name=value</string>
-            </property>
            </widget>
           </item>
          </layout>
index 6964eb9a46badaf03a03c37d168f19d90fce03e2..7bc30c8e212925b0059f128a6cef731b88550b51 100644 (file)
@@ -671,6 +671,10 @@ QtLauncher::QtLauncher() :
     m_ui.reset(new Ui::Launcher);
     m_ui->setupUi(this);
 
+#if QT_VERSION >= 0x050300
+    // don't require Qt 5.3
+    m_ui->commandLineArgs->setPlaceholderText("--option=value --prop:/sim/name=value");
+#endif
     for (int i=0; i<4; ++i) {
         m_ratingFilters[i] = 3;
     }