Add application role 'Sample'

Sample hotkey which requires access to CGuiApplication, did not yet
set a application role. Since there was no corresponding role for
samples, I added one and set it in sample hotkey.
This commit is contained in:
Roland Winklmeier
2017-01-16 17:30:37 +01:00
committed by Mathew Sutcliffe
parent 5420aee195
commit 97b21b6dac
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
{
CGuiApplication::highDpiScreenSupport();
QApplication qa(argc, argv);
CGuiApplication a;
CGuiApplication a("samplehotkey", BlackMisc::CApplicationInfo::Sample, QPixmap());
BlackGui::Components::CSettingsHotkeyComponent w;
w.show();
return a.exec();

View File

@@ -32,7 +32,8 @@ namespace BlackMisc
PilotClientCore,
PilotClientGui,
MappingTool,
UnitTest
UnitTest,
Sample
};
//! Flags describing application modes