Fix Qxt Qt5 build?
This commit is contained in:
8
3rdparty/qxt/CMakeLists.txt
vendored
8
3rdparty/qxt/CMakeLists.txt
vendored
@@ -9,8 +9,12 @@ set(QXT-MOC-HEADERS
|
||||
qxtglobalshortcut.h
|
||||
)
|
||||
|
||||
find_package(X11)
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
if (NOT WIN32 AND NOT APPLE)
|
||||
find_package(X11)
|
||||
include_directories(${X11_INCLUDE_DIR})
|
||||
endif (NOT WIN32 AND NOT APPLE)
|
||||
|
||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QTINCLUDES} )
|
||||
|
||||
if(WIN32)
|
||||
set(QXT-SOURCES ${QXT-SOURCES} qxtglobalshortcut_win.cpp)
|
||||
|
||||
6
3rdparty/qxt/qxtglobalshortcut_p.h
vendored
6
3rdparty/qxt/qxtglobalshortcut_p.h
vendored
@@ -35,7 +35,11 @@
|
||||
#include <QKeySequence>
|
||||
#include <QHash>
|
||||
|
||||
#if QT_VERSION>=0x050000
|
||||
class QxtGlobalShortcutPrivate : public QAbstractNativeEventFilter, public QxtPrivate<QxtGlobalShortcut>
|
||||
#else
|
||||
class QxtGlobalShortcutPrivate : public QxtPrivate<QxtGlobalShortcut>
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
QXT_DECLARE_PUBLIC(QxtGlobalShortcut)
|
||||
@@ -55,7 +59,7 @@ public:
|
||||
static QAbstractEventDispatcher::EventFilter prevEventFilter;
|
||||
static bool eventFilter(void* message);
|
||||
#else
|
||||
bool nativeEventFilter(const QByteArray &, void *message, long *result)
|
||||
bool nativeEventFilter(const QByteArray &, void *message, long *result);
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user