Commit 029cb0b8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Port test app to QQC2

parent 17636a69
......@@ -20,7 +20,7 @@ along with this program. If not, see <>.
#include "../greeter/authenticator.h"
#include <QGuiApplication>
#include <QCommandLineParser>
#include <QQuickView>
#include <QQmlApplicationEngine>
#include <QQmlContext>
int main(int argc, char *argv[])
......@@ -44,10 +44,8 @@ int main(int argc, char *argv[])
Authenticator authenticator(mode);
QQuickView view;
view.rootContext()->setContextProperty(QStringLiteral("authenticator"), &authenticator);
QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty(QStringLiteral("authenticator"), &authenticator);
return app.exec();
......@@ -18,10 +18,11 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <>.
import QtQuick 2.1
import QtQuick.Controls 1.4
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
Item {
ApplicationWindow {
visible: true
ColumnLayout {
anchors.fill: parent
Label {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment