|
|
@ -1,4 +1,5 @@ |
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
|
|
|
|
#include <QApplication> |
|
|
|
|
|
|
|
|
|
|
|
#ifdef QCOM2 |
|
|
|
#ifdef QCOM2 |
|
|
|
#include <qpa/qplatformnativeinterface.h> |
|
|
|
#include <qpa/qplatformnativeinterface.h> |
|
|
@ -15,10 +16,10 @@ void setMainWindow(QWidget *w) { |
|
|
|
|
|
|
|
|
|
|
|
#ifdef QCOM2 |
|
|
|
#ifdef QCOM2 |
|
|
|
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); |
|
|
|
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface(); |
|
|
|
wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w.windowHandle())); |
|
|
|
wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w->windowHandle())); |
|
|
|
wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270); |
|
|
|
wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270); |
|
|
|
wl_surface_commit(s); |
|
|
|
wl_surface_commit(s); |
|
|
|
w.showFullScreen(); |
|
|
|
w->showFullScreen(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|