mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
Qt, bump to version 6.10.3 (#13935)
This commit is contained in:
34
dev-qt/qt6-serialport/patches/qt6_serialport-6.10.3.patchset
Normal file
34
dev-qt/qt6-serialport/patches/qt6_serialport-6.10.3.patchset
Normal file
@@ -0,0 +1,34 @@
|
||||
From c83292167b43f48a381ef6a5c1b38cea7fc9b895 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Mon, 11 Feb 2019 15:53:20 +1000
|
||||
Subject: Add filteredDeviceFilePaths for Haiku's /dev/ports/*
|
||||
|
||||
|
||||
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
|
||||
index 573b742..6678c61 100644
|
||||
--- a/src/serialport/qserialportinfo_unix.cpp
|
||||
+++ b/src/serialport/qserialportinfo_unix.cpp
|
||||
@@ -48,13 +48,19 @@ static QStringList filteredDeviceFilePaths()
|
||||
<< QStringLiteral("cu*");
|
||||
#elif defined(Q_OS_QNX)
|
||||
<< QStringLiteral("ser*");
|
||||
+#elif defined(Q_OS_HAIKU)
|
||||
+ << QStringLiteral("*serial*")
|
||||
+ << QStringLiteral("usb*");
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
|
||||
QStringList result;
|
||||
-
|
||||
+#if defined(Q_OS_HAIKU)
|
||||
+ QDir deviceDir(QStringLiteral("/dev/ports"));
|
||||
+#else
|
||||
QDir deviceDir(QStringLiteral("/dev"));
|
||||
+#endif
|
||||
if (deviceDir.exists()) {
|
||||
deviceDir.setNameFilters(deviceFileNameFilterList);
|
||||
deviceDir.setFilter(QDir::Files | QDir::System | QDir::NoSymLinks);
|
||||
--
|
||||
2.52.0
|
||||
|
||||
Reference in New Issue
Block a user