From 97b21b6dacf8407840f49101bcb8e1d37e7aab46 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 16 Jan 2017 17:30:37 +0100 Subject: [PATCH] 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. --- samples/hotkey/main.cpp | 2 +- src/blackmisc/applicationinfo.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/hotkey/main.cpp b/samples/hotkey/main.cpp index 230dad081..1c9c3286a 100644 --- a/samples/hotkey/main.cpp +++ b/samples/hotkey/main.cpp @@ -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(); diff --git a/src/blackmisc/applicationinfo.h b/src/blackmisc/applicationinfo.h index ecfae2eb6..0f58f35be 100644 --- a/src/blackmisc/applicationinfo.h +++ b/src/blackmisc/applicationinfo.h @@ -32,7 +32,8 @@ namespace BlackMisc PilotClientCore, PilotClientGui, MappingTool, - UnitTest + UnitTest, + Sample }; //! Flags describing application modes