Fix compile with qt < 4.7

Reenable placeholder text for lobby name, not sure why it was disabled
This commit is contained in:
AsamK 2015-08-31 23:38:50 +02:00
parent c844d37ada
commit b43e0ab2e0
2 changed files with 5 additions and 10 deletions

View File

@ -47,11 +47,10 @@ CreateLobbyDialog::CreateLobbyDialog(const std::set<RsPeerId>& peer_list, int pr
ui->idChooser_CB->loadIds(IDCHOOSER_ID_REQUIRED, default_identity);
//#if QT_VERSION >= 0x040700
// ui->lobbyName_LE->setPlaceholderText(tr("Put a sensible lobby name here")) ;
// ui->nickName_LE->setPlaceholderText(tr("Your nickname for this lobby (Change default name in options->chat)")) ;
//#endif
// ui->nickName_LE->setText(QString::fromUtf8(default_nick.c_str())) ;
#if QT_VERSION >= 0x040700
ui->lobbyName_LE->setPlaceholderText(tr("Put a sensible lobby name here"));
ui->lobbyTopic_LE->setPlaceholderText(tr("Set a descriptive topic here"));
#endif
connect( ui->buttonBox, SIGNAL(accepted()), this, SLOT(createLobby()));
connect( ui->buttonBox, SIGNAL(rejected()), this, SLOT(close()));

View File

@ -71,11 +71,7 @@
</widget>
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="lobbyTopic_LE">
<property name="placeholderText">
<string>Set a descriptive topic here</string>
</property>
</widget>
<widget class="QLineEdit" name="lobbyTopic_LE"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">