# HG changeset patch # User Wuzzy <almikes@aol.com> # Date 1462543728 -7200 # Node ID 92b3b0fcb41ffc87ec9db6960fc137533c20abcf # Parent f9a4f4d11c3a1d725a65f35b88b4f63e030eb360 Add more What's This? texts throughout the frontend diff -r f9a4f4d11c3a -r 92b3b0fcb41f QTfrontend/ui/page/pagemultiplayer.cpp --- a/QTfrontend/ui/page/pagemultiplayer.cpp Fri May 06 15:45:48 2016 +0200 +++ b/QTfrontend/ui/page/pagemultiplayer.cpp Fri May 06 16:08:48 2016 +0200 @@ -60,6 +60,7 @@ QSize sz = lp.actualSize(QSize(65535, 65535)); BtnStartMPGame = new QPushButton(); BtnStartMPGame->setText(tr("Start")); + BtnStartMPGame->setWhatsThis(tr("Start fighting (requires at least 2 teams)")); BtnStartMPGame->setMinimumWidth(sz.width() + 60); BtnStartMPGame->setIcon(lp); BtnStartMPGame->setFixedHeight(50); diff -r f9a4f4d11c3a -r 92b3b0fcb41f QTfrontend/ui/page/pagenetgame.cpp --- a/QTfrontend/ui/page/pagenetgame.cpp Fri May 06 15:45:48 2016 +0200 +++ b/QTfrontend/ui/page/pagenetgame.cpp Fri May 06 16:08:48 2016 +0200 @@ -49,6 +49,7 @@ roomConfigLayout->setSpacing(0); leRoomName = new HistoryLineEdit(this, 10); + leRoomName->setWhatsThis(tr("Room name")); leRoomName->setMaxLength(60); leRoomName->setMinimumWidth(400); leRoomName->setMaximumWidth(600); @@ -58,6 +59,7 @@ roomConfigLayout->addWidget(leRoomName, 100); BtnUpdate = new QPushButton(); + BtnUpdate->setWhatsThis(tr("Update the room name")); BtnUpdate->setEnabled(false); BtnUpdate->setText(tr("Update")); BtnUpdate->setFixedHeight(leRoomName->height() - 0); @@ -126,7 +128,7 @@ BtnGo = new QPushButton(this); BtnGo->setIconSize(QSize(25, 34)); - BtnGo->setWhatsThis(tr("Turn on the lightbulb to show the other players when you're ready to fight.")); + BtnGo->setWhatsThis(tr("Turn on the lightbulb to show the other players when you're ready to fight")); setReadyStatus(false); BtnGo->setMinimumWidth(50); BtnGo->setMinimumHeight(50); @@ -140,6 +142,7 @@ QSize sz = lp.actualSize(QSize(65535, 65535)); BtnStart = new QPushButton(); BtnStart->setText(tr("Start")); + BtnStart->setWhatsThis(tr("Start fighting (requires at least 2 teams)")); BtnStart->setMinimumWidth(sz.width() + 60); BtnStart->setIcon(lp); BtnStart->setFixedHeight(50); diff -r f9a4f4d11c3a -r 92b3b0fcb41f QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Fri May 06 15:45:48 2016 +0200 +++ b/QTfrontend/ui/widget/chatwidget.cpp Fri May 06 16:08:48 2016 +0200 @@ -210,6 +210,7 @@ // Chat view chatText = new QTextBrowser(this); + chatText->setWhatsThis(tr("Chat log")); chatText->document()->setDefaultStyleSheet(styleSheet()); chatText->setMinimumHeight(20); chatText->setMinimumWidth(10); @@ -226,6 +227,7 @@ // Hover: rgb(13, 5, 68) chatEditLine = new SmartLineEdit(); + chatEditLine->setWhatsThis(tr("Enter chat messages here and send them with [Enter]")); chatEditLine->setMaxLength(300); chatEditLine->setStyleSheet("SmartLineEdit { background-color: rgb(23, 11, 54); padding: 2px 8px; border-width: 0px; border-radius: 7px; } SmartLineEdit:hover, SmartLineEdit:focus { background-color: rgb(13, 5, 68); }"); chatEditLine->setFixedHeight(24); @@ -237,6 +239,7 @@ // Nickname list chatNicks = new QListView(this); + chatNicks->setWhatsThis(tr("List of players")); chatNicks->setIconSize(QSize(24, 16)); chatNicks->setSelectionMode(QAbstractItemView::SingleSelection); chatNicks->setEditTriggers(QAbstractItemView::NoEditTriggers);