diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-07 20:48:45 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-07 20:48:51 +0100 |
commit | 92d6ea825bba0942ed89092e13ded21851acb208 (patch) | |
tree | 123c103d4d0a83b00b2c9c4e838601e455f3d796 | |
parent | Commenced UI overhaul for Heimdall Frontend 2.0 (diff) | |
download | Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar.gz Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar.bz2 Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar.lz Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar.xz Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.tar.zst Heimdall-92d6ea825bba0942ed89092e13ded21851acb208.zip |
-rw-r--r-- | heimdall-frontend/CMakeLists.txt | 4 | ||||
-rw-r--r-- | heimdall-frontend/source/main.cpp | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/heimdall-frontend/CMakeLists.txt b/heimdall-frontend/CMakeLists.txt index 7cf87fe..dd68fcf 100644 --- a/heimdall-frontend/CMakeLists.txt +++ b/heimdall-frontend/CMakeLists.txt @@ -19,6 +19,10 @@ if(MINGW) set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") endif(MINGW) +if(ENABLE_QML_DEBUGGING) + add_definitions(-DENABLE_QML_DEBUGGING) +endif(ENABLE_QML_DEBUGGING) + include_directories(${LIBPIT_INCLUDE_DIRS}) set(HEIMDALL_FRONTEND_SOURCE_FILES diff --git a/heimdall-frontend/source/main.cpp b/heimdall-frontend/source/main.cpp index 6373006..53e9f2d 100644 --- a/heimdall-frontend/source/main.cpp +++ b/heimdall-frontend/source/main.cpp @@ -30,6 +30,11 @@ Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);
#endif
+#if defined(ENABLE_QML_DEBUGGING)
+#include <QQmlDebuggingEnabler>
+QQmlDebuggingEnabler enabler;
+#endif
+
using namespace HeimdallFrontend;
int main(int argc, char *argv[])
|