diff options
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 10 |
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"; |