mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Enable Context Help (Shift+F1) using "QT's - What's This"
... adds "What's this" to (hopefully) most of the widgets (please report on missing ones) ... defines draft "Whats' this" texts including a context specific WikiLink .. Help Key for all platforms is <Shift>+<F1> + in some widgets "RightMouse - Click" ... Tested on Win and Mac (On Mac QtMacButton seems not supporting "What's this") - so here <Shift>+<F1> has no result. ... ToDo: Create final texts and links based on the to be updated 3.11 Wiki
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "Settings.h"
|
||||
#include "math.h"
|
||||
#include "Units.h" // for MILES_PER_KM
|
||||
#include "HelpWhatsThis.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QString>
|
||||
@@ -47,8 +48,13 @@ TreeMapWindow::TreeMapWindow(Context *context) :
|
||||
mainLayout->setContentsMargins(0,0,0,0);
|
||||
setLayout(mainLayout);
|
||||
|
||||
HelpWhatsThis *helpLTMPlot = new HelpWhatsThis(ltmPlot);
|
||||
ltmPlot->setWhatsThis(helpLTMPlot->getWhatsThisText(HelpWhatsThis::ChartTrends_CollectionTreeMap));
|
||||
|
||||
// the controls
|
||||
QWidget *c = new QWidget;
|
||||
HelpWhatsThis *helpConfig = new HelpWhatsThis(c);
|
||||
c->setWhatsThis(helpConfig->getWhatsThisText(HelpWhatsThis::ChartTrends_CollectionTreeMap));
|
||||
QFormLayout *cl = new QFormLayout(c);
|
||||
setControls(c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user