mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Improved context sensitive help
- create utilty function CGuiApplication::triggerShowHelp - this function also uses "QWhatsThis::leaveWhatsThisMode" which solves the problem that the help was not properly called a 2nd time - adjusted using classes
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "interpolationlogdisplaydialog.h"
|
||||
#include "ui_interpolationlogdisplaydialog.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackcore/simulator.h"
|
||||
|
||||
using namespace BlackCore;
|
||||
@@ -22,7 +23,6 @@ namespace BlackGui
|
||||
ui(new Ui::CInterpolationLogDisplayDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
this->setSimulator(simulator);
|
||||
|
||||
if (airspaceMonitor)
|
||||
@@ -50,5 +50,11 @@ namespace BlackGui
|
||||
{
|
||||
ui->comp_InterpolationLogDisplay->setAirspaceMonitor(airspaceMonitor);
|
||||
}
|
||||
|
||||
bool CInterpolationLogDisplayDialog::event(QEvent *event)
|
||||
{
|
||||
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
||||
return QDialog::event(event);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user