mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Config wizard can open help from "?"
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user