From: James Turner Date: Wed, 25 Feb 2015 23:14:02 +0000 (+0000) Subject: Set placeholderText from code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3d3e81a86c8c5485506335cb5b8aa0714b69e88;p=flightgear.git Set placeholderText from code Avoids a hard requirement of Qt 5.3; only 5.1 is needed. --- diff --git a/src/GUI/Launcher.ui b/src/GUI/Launcher.ui index 4cd666bd9..07d5a0ea8 100644 --- a/src/GUI/Launcher.ui +++ b/src/GUI/Launcher.ui @@ -666,9 +666,6 @@ - - --option=value --prop:/sim/name=value - diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 6964eb9a4..7bc30c8e2 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -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; }