mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +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 "copyconfigurationdialog.h"
|
||||
#include "ui_copyconfigurationdialog.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -49,5 +50,11 @@ namespace BlackGui
|
||||
{
|
||||
ui->comp_CopyConfiguration->setWithBootstrapFile(withBootstrapFile);
|
||||
}
|
||||
|
||||
bool CCopyConfigurationDialog::event(QEvent *event)
|
||||
{
|
||||
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
||||
return QDialog::event(event);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user