mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
117 lines
3.2 KiB
Plaintext
117 lines
3.2 KiB
Plaintext
From 5799550a2d51d563409ca5d3f9deee20756b93f5 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Mon, 3 Sep 2018 20:03:29 +1000
|
|
Subject: Fix build for Haiku
|
|
|
|
|
|
diff --git a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
|
index 476c2f5..0807de6 100644
|
|
--- a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
|
+++ b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
|
|
@@ -6,6 +6,10 @@ if(APPLE)
|
|
list(APPEND QxtGlobalShortcut_SOURCES
|
|
qxtglobalshortcut_mac.cpp
|
|
)
|
|
+elseif(HAIKU)
|
|
+ list(APPEND QxtGlobalShortcut_SOURCES
|
|
+ qxtglobalshortcut_haiku.cpp
|
|
+ )
|
|
elseif(UNIX)
|
|
find_package(X11)
|
|
if(X11_FOUND)
|
|
diff --git a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
|
new file mode 100644
|
|
index 0000000..1bb9cde
|
|
--- /dev/null
|
|
+++ b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
|
@@ -0,0 +1,31 @@
|
|
+#include "qxtglobalshortcut_p.h"
|
|
+
|
|
+#include <QKeySequence>
|
|
+#include <QScopedPointer>
|
|
+#include <QVector>
|
|
+
|
|
+bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray &eventType,
|
|
+ void *message, long *result)
|
|
+{
|
|
+ return false;
|
|
+}
|
|
+
|
|
+quint32 QxtGlobalShortcutPrivate::nativeModifiers(Qt::KeyboardModifiers modifiers)
|
|
+{
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+quint32 QxtGlobalShortcutPrivate::nativeKeycode(Qt::Key key)
|
|
+{
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+bool QxtGlobalShortcutPrivate::registerShortcut(quint32 nativeKey, quint32 nativeMods)
|
|
+{
|
|
+ return false;
|
|
+}
|
|
+
|
|
+bool QxtGlobalShortcutPrivate::unregisterShortcut(quint32 nativeKey, quint32 nativeMods)
|
|
+{
|
|
+ return false;
|
|
+}
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 0e2eda970a52414e3cd844c76ad6672cc5e9053b Mon Sep 17 00:00:00 2001
|
|
From: Begasus <begasus@gmail.com>
|
|
Date: Wed, 6 Dec 2023 17:04:14 +0100
|
|
Subject: Fix linking with libnetwork
|
|
|
|
|
|
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
|
|
index 46fdd92..c5ee837 100644
|
|
--- a/src/app/CMakeLists.txt
|
|
+++ b/src/app/CMakeLists.txt
|
|
@@ -45,6 +45,10 @@ endif()
|
|
|
|
target_link_libraries(App PRIVATE Core Util Qt${QT_VERSION_MAJOR}::Widgets)
|
|
|
|
+if(HAIKU)
|
|
+ target_link_libraries(App PRIVATE network)
|
|
+endif()
|
|
+
|
|
set_target_properties(App PROPERTIES
|
|
OUTPUT_NAME ${_project_output_name}
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
--
|
|
2.48.1
|
|
|
|
|
|
From 36d2814f154c8c282e9c7b96130c0f4aca5dd205 Mon Sep 17 00:00:00 2001
|
|
From: Luc Schrijvers <begasus@gmail.com>
|
|
Date: Wed, 28 May 2025 09:29:04 +0200
|
|
Subject: Fix: undefined reference to `QxtGlobalShortcutPrivate::isSupported()'
|
|
|
|
|
|
diff --git a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
|
index 1bb9cde..654766f 100644
|
|
--- a/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
|
+++ b/src/libs/ui/qxtglobalshortcut/qxtglobalshortcut_haiku.cpp
|
|
@@ -1,9 +1,15 @@
|
|
#include "qxtglobalshortcut_p.h"
|
|
|
|
+#include <QGuiApplication>
|
|
#include <QKeySequence>
|
|
#include <QScopedPointer>
|
|
#include <QVector>
|
|
|
|
+bool QxtGlobalShortcutPrivate::isSupported()
|
|
+{
|
|
+ return QGuiApplication::platformName() == QLatin1String("haiku");
|
|
+}
|
|
+
|
|
bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray &eventType,
|
|
void *message, long *result)
|
|
{
|
|
--
|
|
2.48.1
|
|
|