summaryrefslogtreecommitdiff
path: root/schulung_tools/leds/main.cpp
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-02-15 12:50:06 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-02-15 12:50:06 +0106
commite5382e43fcc8d143db24d80833a02b44b9c0b78e (patch)
tree3057ebdfaa833808265501e4b3173ce20d39ab21 /schulung_tools/leds/main.cpp
parente46aa51aa27833e44975b24842e8175c4a0a54da (diff)
schulung_tools: leds: add Qt leds application for host
The leds application runs on the host and is used to simulate PCI hardware with 3 LEDs. See the README for information about how to build and use it. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/leds/main.cpp')
-rw-r--r--schulung_tools/leds/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/schulung_tools/leds/main.cpp b/schulung_tools/leds/main.cpp
new file mode 100644
index 0000000..ec5e92b
--- /dev/null
+++ b/schulung_tools/leds/main.cpp
@@ -0,0 +1,14 @@
+#include "leds.h"
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ Leds w;
+ if (w.init())
+ return -1;
+
+ w.show();
+
+ return a.exec();
+}