From b43e0ab2e0c4910f06da2364af6565a0d79bc4ac Mon Sep 17 00:00:00 2001 From: AsamK Date: Mon, 31 Aug 2015 23:38:50 +0200 Subject: [PATCH] Fix compile with qt < 4.7 Reenable placeholder text for lobby name, not sure why it was disabled --- retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp | 9 ++++----- retroshare-gui/src/gui/chat/CreateLobbyDialog.ui | 6 +----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp b/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp index 05a7684f2..2d1a75829 100644 --- a/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/CreateLobbyDialog.cpp @@ -47,11 +47,10 @@ CreateLobbyDialog::CreateLobbyDialog(const std::set& 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())); diff --git a/retroshare-gui/src/gui/chat/CreateLobbyDialog.ui b/retroshare-gui/src/gui/chat/CreateLobbyDialog.ui index 4877a5f71..1d2340e08 100644 --- a/retroshare-gui/src/gui/chat/CreateLobbyDialog.ui +++ b/retroshare-gui/src/gui/chat/CreateLobbyDialog.ui @@ -71,11 +71,7 @@ - - - Set a descriptive topic here - - +