summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorJean-Michaƫl Celerier <jeanmichael.celerier@gmail.com>2024-07-08 05:17:23 -0400
committerDavid Robillard <d@drobilla.net>2024-07-11 19:41:00 -0400
commit35804e3346e687f01cbdd22738a46af6a38b43da (patch)
treed9c86d44d76b67f9d59cb8749473a61d1569effb /src/instance.c
parentb050405c4912d29ea518cd7eea23e892be918e47 (diff)
downloadsuil-35804e3346e687f01cbdd22738a46af6a38b43da.tar.gz
suil-35804e3346e687f01cbdd22738a46af6a38b43da.tar.bz2
suil-35804e3346e687f01cbdd22738a46af6a38b43da.zip
Add support for X11 in Qt6
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index 441176c..496155c 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -17,6 +17,7 @@
#define GTK2_UI_URI LV2_UI__GtkUI
#define GTK3_UI_URI LV2_UI__Gtk3UI
#define QT5_UI_URI LV2_UI__Qt5UI
+#define QT6_UI_URI LV2_UI_PREFIX "Qt6UI"
#define X11_UI_URI LV2_UI__X11UI
#define WIN_UI_URI LV2_UI_PREFIX "WindowsUI"
#define COCOA_UI_URI LV2_UI__CocoaUI
@@ -43,7 +44,9 @@ suil_ui_supported(const char* host_type_uri, const char* ui_type_uri)
!strcmp(ui_type_uri, X11_UI_URI)) ||
(!strcmp(host_type_uri, QT5_UI_URI) &&
(!strcmp(ui_type_uri, COCOA_UI_URI) ||
- !strcmp(ui_type_uri, X11_UI_URI)))) {
+ !strcmp(ui_type_uri, X11_UI_URI))) ||
+ (!strcmp(host_type_uri, QT6_UI_URI) &&
+ (!strcmp(ui_type_uri, X11_UI_URI)))) {
return SUIL_WRAPPING_EMBEDDED;
}
@@ -84,6 +87,11 @@ open_wrapper(SuilHost* host,
module_name = "suil_x11_in_qt5";
}
+ if (!strcmp(container_type_uri, QT6_UI_URI) &&
+ !strcmp(ui_type_uri, X11_UI_URI)) {
+ module_name = "suil_x11_in_qt6";
+ }
+
if (!strcmp(container_type_uri, QT5_UI_URI) &&
!strcmp(ui_type_uri, COCOA_UI_URI)) {
module_name = "suil_cocoa_in_qt5";