initial commit
authorGuillaume Castagnino <guillaume.castagnino@rohde-schwarz.com>
Tue, 10 Mar 2020 15:17:18 +0000 (16:17 +0100)
committerGuillaume Castagnino <guillaume.castagnino@rohde-schwarz.com>
Tue, 10 Mar 2020 15:17:18 +0000 (16:17 +0100)
fookb.cpp [new file with mode: 0644]
fookb.pro [new file with mode: 0644]
fookb.qml [new file with mode: 0644]
images/fr.png [new file with mode: 0644]
images/ru.png [new file with mode: 0644]

diff --git a/fookb.cpp b/fookb.cpp
new file mode 100644 (file)
index 0000000..75e0ade
--- /dev/null
+++ b/fookb.cpp
@@ -0,0 +1,11 @@
+#include <QApplication>
+#include <QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+    QApplication app(argc, argv);
+    QQmlApplicationEngine engine;
+    engine.load(QUrl(QStringLiteral("qrc:/fookb.qml")));
+    return app.exec();
+}
diff --git a/fookb.pro b/fookb.pro
new file mode 100644 (file)
index 0000000..ef96108
--- /dev/null
+++ b/fookb.pro
@@ -0,0 +1,3 @@
+QT += widgets
+SOURCES = fookb.cpp
+TARGET = fookb
diff --git a/fookb.qml b/fookb.qml
new file mode 100644 (file)
index 0000000..56585bb
--- /dev/null
+++ b/fookb.qml
@@ -0,0 +1,11 @@
+SystemTrayIcon {
+    visible: true
+    icon.source: "qrc:/images/fr.png"
+
+    menu: Menu {
+        MenuItem {
+            text: qsTr("Quit")
+            onTriggered: Qt.quit()
+        }
+    }
+}
diff --git a/images/fr.png b/images/fr.png
new file mode 100644 (file)
index 0000000..5588751
Binary files /dev/null and b/images/fr.png differ
diff --git a/images/ru.png b/images/ru.png
new file mode 100644 (file)
index 0000000..f1d09a4
Binary files /dev/null and b/images/ru.png differ