mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Use context based help for model set validation to display further details
This commit is contained in:
committed by
Mat Sutcliffe
parent
ed20b97950
commit
4bc5b7720e
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "aircraftmodelsetvalidationdialog.h"
|
||||
#include "guiapplication.h"
|
||||
#include "blackmisc/simulation/simulatorinfo.h"
|
||||
#include "ui_aircraftmodelsetvalidationdialog.h"
|
||||
|
||||
@@ -22,7 +23,7 @@ namespace BlackGui
|
||||
ui(new Ui::CAircraftModelSetValidationDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
this->setWindowFlags(this->windowFlags() | Qt::WindowContextHelpButtonHint);
|
||||
}
|
||||
|
||||
CAircraftModelSetValidationDialog::~CAircraftModelSetValidationDialog()
|
||||
@@ -33,5 +34,11 @@ namespace BlackGui
|
||||
ui->comp_AircraftModelValidation->validatedModelSet(simulator, valid, invalid, stopped, msgs);
|
||||
this->setWindowTitle(QStringLiteral("Model validation for '%1'").arg(simulator.toQString(true)));
|
||||
}
|
||||
|
||||
bool CAircraftModelSetValidationDialog::event(QEvent *event)
|
||||
{
|
||||
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
||||
return QDialog::event(event);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user