1
0
Fork 0

Set placeholderText from code

Avoids a hard requirement of Qt 5.3; only 5.1 is
needed.
This commit is contained in:
James Turner 2015-02-25 23:14:02 +00:00
parent e1def22193
commit a3d3e81a86
2 changed files with 4 additions and 3 deletions

View file

@ -666,9 +666,6 @@
</property>
<item>
<widget class="QPlainTextEdit" name="commandLineArgs">
<property name="placeholderText">
<string>--option=value --prop:/sim/name=value</string>
</property>
</widget>
</item>
</layout>

View 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;
}