]> Johnzone git - notdienst_2015.git/commitdiff
initial master
authorJohn Janus <mail@johnzone.org>
Sat, 3 Jan 2015 21:23:49 +0000 (22:23 +0100)
committerJohn Janus <mail@johnzone.org>
Sat, 3 Jan 2015 21:23:49 +0000 (22:23 +0100)
.gitignore [new file with mode: 0644]
deployment.pri [new file with mode: 0644]
main.cpp [new file with mode: 0644]
main.qml [new file with mode: 0644]
notdienst_2015.pro [new file with mode: 0644]
qml.qrc [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..75c107b
--- /dev/null
@@ -0,0 +1 @@
+*.pro.user
diff --git a/deployment.pri b/deployment.pri
new file mode 100644 (file)
index 0000000..5441b63
--- /dev/null
@@ -0,0 +1,27 @@
+android-no-sdk {
+    target.path = /data/user/qt
+    export(target.path)
+    INSTALLS += target
+} else:android {
+    x86 {
+        target.path = /libs/x86
+    } else: armeabi-v7a {
+        target.path = /libs/armeabi-v7a
+    } else {
+        target.path = /libs/armeabi
+    }
+    export(target.path)
+    INSTALLS += target
+} else:unix {
+    isEmpty(target.path) {
+        qnx {
+            target.path = /tmp/$${TARGET}/bin
+        } else {
+            target.path = /opt/$${TARGET}/bin
+        }
+        export(target.path)
+    }
+    INSTALLS += target
+}
+
+export(INSTALLS)
diff --git a/main.cpp b/main.cpp
new file mode 100644 (file)
index 0000000..d76049d
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,12 @@
+#include <QGuiApplication>
+#include <QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+    QGuiApplication app(argc, argv);
+
+    QQmlApplicationEngine engine;
+    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+
+    return app.exec();
+}
diff --git a/main.qml b/main.qml
new file mode 100644 (file)
index 0000000..af32f2e
--- /dev/null
+++ b/main.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.3
+import QtQuick.Window 2.2
+
+Window {
+    visible: true
+    width: 360
+    height: 360
+
+    MouseArea {
+        anchors.fill: parent
+        onClicked: {
+            Qt.quit();
+        }
+    }
+
+    Text {
+        text: qsTr("Hello World")
+        anchors.centerIn: parent
+    }
+}
diff --git a/notdienst_2015.pro b/notdienst_2015.pro
new file mode 100644 (file)
index 0000000..77cbe78
--- /dev/null
@@ -0,0 +1,13 @@
+TEMPLATE = app
+
+QT += qml quick
+
+SOURCES += main.cpp
+
+RESOURCES += qml.qrc
+
+# Additional import path used to resolve QML modules in Qt Creator's code model
+QML_IMPORT_PATH =
+
+# Default rules for deployment.
+include(deployment.pri)
diff --git a/qml.qrc b/qml.qrc
new file mode 100644 (file)
index 0000000..5f6483a
--- /dev/null
+++ b/qml.qrc
@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>main.qml</file>
+    </qresource>
+</RCC>