aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-qml/test
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-10-10 10:24:50 -0400
committerKen Moore <ken@ixsystems.com>2017-10-10 10:24:50 -0400
commit7f013d766723468f4c4785411dcf5d42694cec3b (patch)
tree763a25026b6a0ea09fec3823cdaeeb9483f2b57f /src-qt5/src-qml/test
parentRemove the src-glwidgets tree. No longer needed since it has been replaced by... (diff)
downloadlumina-7f013d766723468f4c4785411dcf5d42694cec3b.tar.gz
lumina-7f013d766723468f4c4785411dcf5d42694cec3b.tar.bz2
lumina-7f013d766723468f4c4785411dcf5d42694cec3b.zip
Fix up the QML test routine a bit, and add a couple works-in-progress for a new firefly screensaver.
Diffstat (limited to 'src-qt5/src-qml/test')
-rw-r--r--src-qt5/src-qml/test/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/src-qml/test/main.cpp b/src-qt5/src-qml/test/main.cpp
index eabe7dc5..e65c599f 100644
--- a/src-qt5/src-qml/test/main.cpp
+++ b/src-qt5/src-qml/test/main.cpp
@@ -1,6 +1,6 @@
#include <QDebug>
#include <QApplication>
-#include <QQuickWidget>
+#include <QQuickView>
int main(int argc, char** argv){
QString QMLFile;
@@ -14,7 +14,8 @@ int main(int argc, char** argv){
}
QApplication A(argc,argv);
qDebug() << "Creating base widget";
- QQuickWidget base;
+ QQuickView base;
+ base.setResizeMode(QQuickView::SizeRootObjectToView);
qDebug() << "Resize base widget";
base.resize(1024,768);
qDebug() << "Load QML File:" << QMLFile;
bgstack15