mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
Fix build of experimental C++ platform API on Linux
This commit is contained in:
parent
7864481dfc
commit
b27163954a
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# include "slint.h"
|
# include "slint.h"
|
||||||
|
# include <utility>
|
||||||
|
|
||||||
struct xcb_connection_t;
|
struct xcb_connection_t;
|
||||||
struct wl_surface;
|
struct wl_surface;
|
||||||
|
@ -270,7 +271,7 @@ public:
|
||||||
static NativeWindowHandle from_wayland(wl_surface *surface, wl_display *display)
|
static NativeWindowHandle from_wayland(wl_surface *surface, wl_display *display)
|
||||||
{
|
{
|
||||||
|
|
||||||
return { cbindgen_private::slint_new_raw_window_handle_wayland(surface, display, size) };
|
return { cbindgen_private::slint_new_raw_window_handle_wayland(surface, display) };
|
||||||
}
|
}
|
||||||
|
|
||||||
# elif defined(__APPLE__) && !defined(_WIN32) && !defined(_WIN64)
|
# elif defined(__APPLE__) && !defined(_WIN32) && !defined(_WIN64)
|
||||||
|
|
|
@ -36,7 +36,7 @@ static slint_platform::NativeWindowHandle window_handle_for_qt_window(QWindow *w
|
||||||
auto wid = Qt::HANDLE(window->winId());
|
auto wid = Qt::HANDLE(window->winId());
|
||||||
return slint_platform::NativeWindowHandle::from_win32(wid, GetModuleHandle(nullptr));
|
return slint_platform::NativeWindowHandle::from_win32(wid, GetModuleHandle(nullptr));
|
||||||
#else
|
#else
|
||||||
auto wid = winId();
|
auto wid = window->winId();
|
||||||
auto visual_id = 0; // FIXME
|
auto visual_id = 0; // FIXME
|
||||||
QPlatformNativeInterface *native = qApp->platformNativeInterface();
|
QPlatformNativeInterface *native = qApp->platformNativeInterface();
|
||||||
auto *connection = reinterpret_cast<xcb_connection_t *>(
|
auto *connection = reinterpret_cast<xcb_connection_t *>(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue