mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Config wizard can open help from "?"
This commit is contained in:
@@ -66,6 +66,13 @@ namespace BlackGui
|
|||||||
return wizard && wizard->lastStepSkipped();
|
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)
|
void CConfigurationWizard::wizardCurrentIdChanged(int id)
|
||||||
{
|
{
|
||||||
const int previousId = m_previousId;
|
const int previousId = m_previousId;
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ namespace BlackGui
|
|||||||
//! Static version of CConfigurationWizard::lastStepSkipped
|
//! Static version of CConfigurationWizard::lastStepSkipped
|
||||||
static bool lastWizardStepSkipped(const QWizard *standardWizard);
|
static bool lastWizardStepSkipped(const QWizard *standardWizard);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
//! \copydoc QObject::event
|
||||||
|
virtual bool event(QEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//! The current page has changed
|
//! The current page has changed
|
||||||
void wizardCurrentIdChanged(int id);
|
void wizardCurrentIdChanged(int id);
|
||||||
|
|||||||
Reference in New Issue
Block a user