aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-01-10 23:50:06 -0500
committerKen Moore <ken@ixsystems.com>2018-01-10 23:50:06 -0500
commit27f1a7177b54f6ec4177ddb11804025740b745a7 (patch)
treeac5b8183e5cec9b31231b90a81eb25ef00fc89fd /src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp
parentCompleted resizing on the QML Window Frame, cosmetic improvements, and settin... (diff)
downloadlumina-27f1a7177b54f6ec4177ddb11804025740b745a7.tar.gz
lumina-27f1a7177b54f6ec4177ddb11804025740b745a7.tar.bz2
lumina-27f1a7177b54f6ec4177ddb11804025740b745a7.zip
Get the window compositing/painting routine finished up with a seamless image provider system.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp
index 0cfa4e6b..5a9b8e09 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/RootWindow.cpp
@@ -5,6 +5,7 @@
// See the LICENSE file for full details
//===========================================
#include "RootWindow.h"
+#include "QMLImageProvider.h"
RootWindow::RootWindow() : QObject(){
root_win = QWindow::fromWinId( QX11Info::appRootWindow() ); //
@@ -16,6 +17,7 @@ RootWindow::RootWindow() : QObject(){
//Now setup the QQuickView
root_view->setResizeMode(QQuickView::SizeRootObjectToView);
root_view->engine()->rootContext()->setContextProperty("RootObject", root_obj);
+ root_view->engine()->addImageProvider("native_window", new QMLImageProvider() );
RootDesktopObject::RegisterType(); //make sure object classes are registered with the QML subsystems
}
bgstack15