summaryrefslogtreecommitdiffhomepage
path: root/proto-iokit-foohid/iokitprotocoldialog.cpp
diff options
context:
space:
mode:
authorStanisław Halik <sthalik@misaki.pl>2017-11-28 15:16:27 +0100
committerGitHub <noreply@github.com>2017-11-28 15:16:27 +0100
commit1a91ba620dfbc420cfeee4530bc3f03127f3b967 (patch)
tree2a02884f633ddbc7ede387a5bf2aa8d7b0396e5f /proto-iokit-foohid/iokitprotocoldialog.cpp
parentf548847ea43006b2dc540e84d11d3c3662a94148 (diff)
parent7bacbdf10b97040c9ed282a22485759bd082fa63 (diff)
Merge pull request #700 from e4z9/foohid
Add virtual joystick output for macOS
Diffstat (limited to 'proto-iokit-foohid/iokitprotocoldialog.cpp')
-rw-r--r--proto-iokit-foohid/iokitprotocoldialog.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/proto-iokit-foohid/iokitprotocoldialog.cpp b/proto-iokit-foohid/iokitprotocoldialog.cpp
new file mode 100644
index 00000000..443a30b6
--- /dev/null
+++ b/proto-iokit-foohid/iokitprotocoldialog.cpp
@@ -0,0 +1,30 @@
+/* Copyright (c) 2017, Eike Ziller *
+ * *
+ * Permission to use, copy, modify, and/or distribute this software for any *
+ * purpose with or without fee is hereby granted, provided that the above *
+ * copyright notice and this permission notice appear in all copies. *
+ */
+
+#include "iokitprotocoldialog.h"
+
+#include <QDialogButtonBox>
+#include <QLabel>
+#include <QVBoxLayout>
+
+IOKitProtocolDialog::IOKitProtocolDialog()
+{
+ setLayout(new QVBoxLayout);
+ layout()->addWidget(new QLabel(tr("No settings available.")));
+ layout()->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::Expanding));
+ auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
+ layout()->addWidget(buttonBox);
+ connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
+}
+
+void IOKitProtocolDialog::register_protocol(IProtocol *)
+{
+}
+
+void IOKitProtocolDialog::unregister_protocol()
+{
+}