summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-26 09:56:03 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-26 09:56:03 (GMT)
commit87faa911f3249bab8c1ac1fea9d0430c1c81a061 (patch)
tree7b898a71891fbd717762581a7a277b5a159e43e3 /Swift/QtUI/UserSearch
parent506d1621530a40d3e59f50f693587c3c4fd724f5 (diff)
downloadswift-87faa911f3249bab8c1ac1fea9d0430c1c81a061.zip
swift-87faa911f3249bab8c1ac1fea9d0430c1c81a061.tar.bz2
Small UI tweaks to actions menu and UI search.
Diffstat (limited to 'Swift/QtUI/UserSearch')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index b3b64b9..82479be 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -32,6 +32,9 @@ QtUserSearchWindow::QtUserSearchWindow(UIEventStream* eventStream, UserSearchWin
connect(firstPage_->byJID_, SIGNAL(toggled(bool)), this, SLOT(handleFirstPageRadioChange()));
connect(firstPage_->byLocalSearch_, SIGNAL(toggled(bool)), this, SLOT(handleFirstPageRadioChange()));
connect(firstPage_->byRemoteSearch_, SIGNAL(toggled(bool)), this, SLOT(handleFirstPageRadioChange()));
+#if QT_VERSION >= 0x040700
+ firstPage_->jid_->setPlaceholderText("alice@wonderland.lit");
+#endif
fieldsPage_ = new QtUserSearchFieldsPage();
fieldsPage_->fetchingThrobber_->setMovie(new QMovie(":/icons/throbber.gif", QByteArray(), this));
fieldsPage_->fetchingThrobber_->movie()->stop();
@@ -42,7 +45,6 @@ QtUserSearchWindow::QtUserSearchWindow(UIEventStream* eventStream, UserSearchWin
setPage(1, firstPage_);
setPage(2, fieldsPage_);
setPage(3, resultsPage_);
-
#ifdef SWIFT_PLATFORM_MACOSX
resultsPage_->results_->setAlternatingRowColors(true);
#endif
@@ -104,7 +106,7 @@ int QtUserSearchWindow::nextId() const {
void QtUserSearchWindow::handleFirstPageRadioChange() {
if (firstPage_->byJID_->isChecked()) {
- firstPage_->jidLabel_->setText("What is their JID? (This has the form 'alice@wonderland.lit')");
+ firstPage_->jidLabel_->setText("What is their JID?");
firstPage_->jidLabel_->show();
firstPage_->service_->hide();
firstPage_->jid_->setText("");