diff --git a/src/gui/guikernel/qplatformclipboard_qpa.cpp b/src/gui/guikernel/qplatformclipboard_qpa.cpp index 302df683bd..2da3892b2d 100644 --- a/src/gui/guikernel/qplatformclipboard_qpa.cpp +++ b/src/gui/guikernel/qplatformclipboard_qpa.cpp @@ -42,7 +42,7 @@ #ifndef QT_NO_CLIPBOARD -#include +#include QT_BEGIN_NAMESPACE @@ -104,7 +104,7 @@ bool QPlatformClipboard::supportsMode(QClipboard::Mode mode) const void QPlatformClipboard::emitChanged(QClipboard::Mode mode) { - QApplication::clipboard()->emitChanged(mode); + QGuiApplication::clipboard()->emitChanged(mode); } QT_END_NAMESPACE diff --git a/src/plugins/platforms/wayland/qwaylandclipboard.cpp b/src/plugins/platforms/wayland/qwaylandclipboard.cpp index 47ca22865b..e463af5d47 100644 --- a/src/plugins/platforms/wayland/qwaylandclipboard.cpp +++ b/src/plugins/platforms/wayland/qwaylandclipboard.cpp @@ -43,12 +43,12 @@ #include "qwaylanddisplay.h" #include "qwaylandinputdevice.h" #include -#include +#include #include #include #include #include -#include +#include static QWaylandClipboard *clipboard;