mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +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:
@@ -11,6 +11,7 @@
|
||||
#include "blackgui/components/dbmappingcomponent.h"
|
||||
#include "blackgui/components/dbownmodelsetformdialog.h"
|
||||
#include "blackgui/editors/ownmodelsetform.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackmisc/logcategory.h"
|
||||
#include "blackmisc/logcategorylist.h"
|
||||
#include "blackmisc/simulation/distributorlist.h"
|
||||
@@ -71,6 +72,12 @@ namespace BlackGui
|
||||
return QDialog::exec();
|
||||
}
|
||||
|
||||
bool CDbOwnModelSetFormDialog::event(QEvent *event)
|
||||
{
|
||||
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
||||
return QDialog::event(event);
|
||||
}
|
||||
|
||||
void CDbOwnModelSetFormDialog::buttonClicked()
|
||||
{
|
||||
const QObject *sender = QObject::sender();
|
||||
|
||||
Reference in New Issue
Block a user