Config wizard can open help from "?"

This commit is contained in:
Klaus Basan
2018-01-19 05:24:22 +01:00
parent fae5e6ac0a
commit d0141692a2
2 changed files with 11 additions and 0 deletions

View File

@@ -66,6 +66,13 @@ namespace BlackGui
return wizard && wizard->lastStepSkipped();
}
bool CConfigurationWizard::event(QEvent *event)
{
if (event->type() != QEvent::EnterWhatsThisMode) { return QDialog::event(event); }
QTimer::singleShot(0, this, [ = ] { sGui->showHelp(this); });
return true;
}
void CConfigurationWizard::wizardCurrentIdChanged(int id)
{
const int previousId = m_previousId;

View File

@@ -52,6 +52,10 @@ namespace BlackGui
//! Static version of CConfigurationWizard::lastStepSkipped
static bool lastWizardStepSkipped(const QWizard *standardWizard);
protected:
//! \copydoc QObject::event
virtual bool event(QEvent *event) override;
private:
//! The current page has changed
void wizardCurrentIdChanged(int id);