Navigation Menu

Skip to content

Commit

Permalink
Fix for issue 'Crash on press label letter': Added Qt5::Core in libra…
Browse files Browse the repository at this point in the history
…ry to add QT_NO_DEBUG for disabling Q_ASSERT() macro
  • Loading branch information
JochenBaier committed Nov 25, 2017
1 parent 1fa3081 commit a89f1c1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fast_window_switcher_app/CMakeLists.txt
Expand Up @@ -79,11 +79,13 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5XmlPatterns REQUIRED)

add_executable(${TARGET_NAME} WIN32 ${SOURCE_FILES} )

target_link_libraries(${TARGET_NAME} PRIVATE Qt5::Core)
target_link_libraries(${TARGET_NAME} PRIVATE Qt5::Widgets)
target_link_libraries(${TARGET_NAME} PRIVATE Qt5::XmlPatterns)

Expand Down
6 changes: 6 additions & 0 deletions fast_window_switcher_lib/CMakeLists.txt
Expand Up @@ -91,10 +91,16 @@ include_directories("${CMAKE_PREFIX_PATH}/include/QtCore")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)

add_library( ${TARGET_NAME} STATIC ${SOURCE_FILES} )


target_link_libraries(${TARGET_NAME} PRIVATE Qt5::Core)
target_link_libraries(${TARGET_NAME} PRIVATE Qt5::Widgets)


#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /std:c++latest")
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /std:c++latest ")

Expand Down
2 changes: 2 additions & 0 deletions fast_window_switcher_lib/src/FastWindowSwitcher.hpp
Expand Up @@ -47,6 +47,8 @@ class QString;
class QTimer;
struct IUIAutomation;

#include <QKeyEvent>

namespace FastWindowSwitcherLib
{
class FastWindowSwitcher :public QObject
Expand Down
5 changes: 4 additions & 1 deletion fast_window_switcher_lib/src/SelectableElementRepository.hpp
Expand Up @@ -34,8 +34,11 @@ Programm erhalten haben.Wenn nicht, siehe < http://www.gnu.org/licenses/>.

#pragma once

#include <QList>

#include <memory>
#include <vector>

#include <QList>

#include "SelectableElementPtr.hpp"

Expand Down

0 comments on commit a89f1c1

Please sign in to comment.