From fd634cea58fbdae90cc36d2373316575731dc27c Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Mon, 14 Jun 2010 21:57:13 +0100 Subject: Add tooltips to the login screen. Resolves: #375 diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 952e066..b278dfd 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -68,6 +68,8 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() { username_ = new QComboBox(this); username_->setEditable(true); + username_->setWhatsThis("User address - looks like someuser@someserver.com"); + username_->setToolTip("User address - looks like someuser@someserver.com"); layout->addWidget(username_); QLabel* passwordLabel = new QLabel(); @@ -92,6 +94,8 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() { certificateButton_ = new QToolButton(this); certificateButton_->setCheckable(true); certificateButton_->setIcon(QIcon(":/icons/certificate.png")); + certificateButton_->setToolTip("Click if you have a personal certificate used for login to the service."); + certificateButton_->setWhatsThis("Click if you have a personal certificate used for login to the service."); credentialsLayout->addWidget(certificateButton_); connect(certificateButton_, SIGNAL(clicked(bool)), SLOT(handleCertficateChecked(bool))); -- cgit v0.10.2-6-g49f6