mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 17:39:58 +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:
@@ -25,6 +25,7 @@
|
||||
#include "math.h"
|
||||
#include "Units.h" // for MILES_PER_KM
|
||||
#include "Colors.h" // for MILES_PER_KM
|
||||
#include "HelpWhatsThis.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QString>
|
||||
@@ -58,6 +59,8 @@ ModelWindow::ModelWindow(Context *context) :
|
||||
GcChartWindow(context), context(context), ride(NULL), current(NULL)
|
||||
{
|
||||
QWidget *c = new QWidget(this);
|
||||
HelpWhatsThis *helpConfig = new HelpWhatsThis(c);
|
||||
c->setWhatsThis(helpConfig->getWhatsThisText(HelpWhatsThis::ChartRides_3D));
|
||||
QFormLayout *cl = new QFormLayout(c);
|
||||
setControls(c);
|
||||
|
||||
@@ -73,6 +76,9 @@ ModelWindow::ModelWindow(Context *context) :
|
||||
mainLayout->addWidget(modelPlot);
|
||||
setChartLayout(mainLayout);
|
||||
|
||||
HelpWhatsThis *help = new HelpWhatsThis(modelPlot);
|
||||
modelPlot->setWhatsThis(help->getWhatsThisText(HelpWhatsThis::ChartRides_3D));
|
||||
|
||||
// preset Values
|
||||
presetLabel = new QLabel(tr("Analyse"), this);
|
||||
presetValues = new QComboBox;
|
||||
|
||||
Reference in New Issue
Block a user