From 67c17cc48bc3a2914d8e6ecb39ec1fb54b4806aa Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Thu, 19 Feb 2015 05:08:26 +1100 Subject: Fix Unix build issues and work-around Qt5 Mac UI bugs --- heimdall-frontend/CMakeLists.txt | 6 +++- heimdall-frontend/mainwindow.ui | 59 ++++++++++++++++++++++++++++++++++++++- heimdall-frontend/source/main.cpp | 2 ++ 3 files changed, 65 insertions(+), 2 deletions(-) (limited to 'heimdall-frontend') diff --git a/heimdall-frontend/CMakeLists.txt b/heimdall-frontend/CMakeLists.txt index 76dac2e..95889b3 100644 --- a/heimdall-frontend/CMakeLists.txt +++ b/heimdall-frontend/CMakeLists.txt @@ -12,7 +12,10 @@ find_package(Qt5Widgets REQUIRED) find_package(ZLIB REQUIRED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") -set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") + +if(MINGW) + set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") +endif(MINGW) include_directories(${LIBPIT_INCLUDE_DIRS}) @@ -33,6 +36,7 @@ qt5_add_resources(HEIMDALL_FRONTEND_RESOURCES mainwindow.qrc) add_executable(heimdall-frontend WIN32 + MACOSX_BUNDLE ${HEIMDALL_FRONTEND_SOURCE_FILES} ${HEIMDALL_FRONTEND_FORMS} ${HEIMDALL_FRONTEND_RESOURCES}) diff --git a/heimdall-frontend/mainwindow.ui b/heimdall-frontend/mainwindow.ui index f3113f2..91df00f 100644 --- a/heimdall-frontend/mainwindow.ui +++ b/heimdall-frontend/mainwindow.ui @@ -196,6 +196,9 @@ 31 + + Qt::NoFocus + Load / Customise @@ -269,6 +272,9 @@ 23 + + Qt::NoFocus + Browse @@ -343,6 +349,9 @@ 23 + + Qt::NoFocus + Donate @@ -359,6 +368,9 @@ 23 + + Qt::NoFocus + Homepage @@ -510,9 +522,21 @@ 23 + + Qt::NoFocus + Browse + + false + + + false + + + false + @@ -935,6 +959,9 @@ 23 + + Qt::NoFocus + Remove Device @@ -1105,6 +1132,9 @@ 23 + + Qt::NoFocus + Add @@ -1122,6 +1152,9 @@ 23 + + Qt::NoFocus + Remove @@ -1338,6 +1371,9 @@ 23 + + Qt::NoFocus + Add Device @@ -1355,6 +1391,9 @@ 31 + + Qt::NoFocus + Build @@ -1416,6 +1455,9 @@ 23 + + Qt::NoFocus + Save As... @@ -1433,6 +1475,9 @@ 23 + + Qt::NoFocus + Download @@ -1531,6 +1576,9 @@ 23 + + Qt::NoFocus + @@ -1625,6 +1673,9 @@ 23 + + Qt::NoFocus + Print @@ -1750,6 +1801,9 @@ 23 + + Qt::NoFocus + Browse @@ -1777,6 +1831,9 @@ 23 + + Qt::NoFocus + Close @@ -1828,7 +1885,7 @@ 0 0 788 - 21 + 22 diff --git a/heimdall-frontend/source/main.cpp b/heimdall-frontend/source/main.cpp index c327b63..5d70e28 100644 --- a/heimdall-frontend/source/main.cpp +++ b/heimdall-frontend/source/main.cpp @@ -25,7 +25,9 @@ // Heimdall Frontend #include "mainwindow.h" +#if defined(QT_STATIC) Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin); +#endif using namespace HeimdallFrontend; -- cgit v1.1