mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19: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:
@@ -22,6 +22,7 @@
|
||||
#include "Context.h"
|
||||
#include "GcWindowLayout.h"
|
||||
#include "Settings.h"
|
||||
#include "HelpWhatsThis.h"
|
||||
#include <QWebSettings>
|
||||
#include <QWebFrame>
|
||||
#include "TimeUtils.h"
|
||||
@@ -59,6 +60,9 @@ DiarySidebar::DiarySidebar(Context *context) : context(context)
|
||||
layout->setContentsMargins(0,0,0,0);
|
||||
calendarItem->addWidget(calWidget);
|
||||
|
||||
HelpWhatsThis *helpCalendarItem = new HelpWhatsThis(calendarItem);
|
||||
calendarItem->setWhatsThis(helpCalendarItem->getWhatsThisText(HelpWhatsThis::SideBarDiaryView_Calendar));
|
||||
|
||||
// summary widget
|
||||
summaryWidget = new QWidget(this);
|
||||
summaryWidget->setContentsMargins(0,0,0,0);
|
||||
@@ -69,6 +73,9 @@ DiarySidebar::DiarySidebar(Context *context) : context(context)
|
||||
slayout->setContentsMargins(0,0,0,0);
|
||||
summaryItem->addWidget(summaryWidget);
|
||||
|
||||
HelpWhatsThis *helpSummaryItem = new HelpWhatsThis(summaryItem);
|
||||
summaryItem->setWhatsThis(helpSummaryItem->getWhatsThisText(HelpWhatsThis::SideBarDiaryView_Summary));
|
||||
|
||||
splitter->addWidget(calendarItem);
|
||||
splitter->addWidget(summaryItem);
|
||||
splitter->prepare(context->athlete->cyclist, "diary");
|
||||
|
||||
Reference in New Issue
Block a user