# HG changeset patch # User koda # Date 1322919789 -3600 # Node ID 752d4fb5e376fb0cc0c68a445dcdcf303bc0b514 # Parent ad5741c252b9708e79033c01dc454e9b45ec3192 cleanup and example diff -r ad5741c252b9 -r 752d4fb5e376 QTfrontend/ui/page/pagemain.cpp --- a/QTfrontend/ui/page/pagemain.cpp Sat Dec 03 14:36:36 2011 +0100 +++ b/QTfrontend/ui/page/pagemain.cpp Sat Dec 03 14:43:09 2011 +0100 @@ -42,19 +42,25 @@ pageLayout->setRowStretch(4, 1); BtnSinglePlayer = addButton(":/res/LocalPlay.png", pageLayout, 2, 0, 1, 2, true); - BtnSinglePlayer->setToolTip(tr("Local Game (Play a game on a single computer)")); + BtnSinglePlayer->setToolTip(tr("Local Game")); + BtnSinglePlayer->setWhatsThis(tr("Play a game on a single computer")); pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); - BtnNet->setToolTip(tr("Network Game (Play a game across a network)")); + BtnNet->setToolTip(tr("Network Game")); + BtnNet->setWhatsThis(tr("Play a game across a network")); pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); // button order matters for overlapping (what's on top and what isn't) BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true); BtnInfo->setStyleSheet("border: transparent;background: transparent;"); + //BtnInfo->setToolTip(tr("Credits")); //tooltip looks horrible with transparent background buttons + BtnInfo->setWhatsThis(tr("Read about who is behind the Hedgewars Project")); pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter); BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 4, 0, 1, 4, false); + //BtnDataDownload->setToolTip(tr(Downloadable Content")); + BtnDataDownload->setWhatsThis(tr("Access the user created content downloadable from our website")); pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter); return pageLayout; @@ -91,13 +97,11 @@ if(!isDevBuild) { - //mainNote->setText(QLabel::tr("Tip: ") + randomTip()); setDefautDescription(QLabel::tr("Tip: ") + randomTip()); } else { setDefautDescription(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!")); - //mainNote->setText(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!")); } } diff -r ad5741c252b9 -r 752d4fb5e376 project_files/hedgewars.pro --- a/project_files/hedgewars.pro Sat Dec 03 14:36:36 2011 +0100 +++ b/project_files/hedgewars.pro Sat Dec 03 14:43:09 2011 +0100 @@ -96,7 +96,6 @@ ../QTfrontend/KB.h \ ../QTfrontend/hwconsts.h \ ../QTfrontend/sdlkeys.h \ - ../QTfrontend/mouseoverfilter.h \ ../QTfrontend/ui/mouseoverfilter.h SOURCES += ../QTfrontend/model/ammoSchemeModel.cpp \