summaryrefslogtreecommitdiffstats
path: root/src/qtsparkle-test.cpp
diff options
context:
space:
mode:
authorPavel Vatagin <pavelvat@gmail.com>2017-01-28 00:08:21 (GMT)
committerPavel Vatagin <pavelvat@gmail.com>2017-02-12 08:34:33 (GMT)
commit392fc983051b788a95c79e3173f9a23f9d41bda9 (patch)
treebb7ef36e234ea597f7c078e07a7c600693f5bcb8 /src/qtsparkle-test.cpp
parent96ed5d28959d00d230980cb1dc96427964b05c1f (diff)
downloadmxe-392fc983051b788a95c79e3173f9a23f9d41bda9.zip
mxe-392fc983051b788a95c79e3173f9a23f9d41bda9.tar.gz
mxe-392fc983051b788a95c79e3173f9a23f9d41bda9.tar.bz2
add package qtsparkle (build with Qt5)
Diffstat (limited to 'src/qtsparkle-test.cpp')
-rw-r--r--src/qtsparkle-test.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qtsparkle-test.cpp b/src/qtsparkle-test.cpp
new file mode 100644
index 0000000..0594294
--- /dev/null
+++ b/src/qtsparkle-test.cpp
@@ -0,0 +1,17 @@
+/*
+ * This file is part of MXE. See LICENSE.md for licensing information.
+ */
+
+#include <qtsparkle-qt5/Updater>
+#include <QWidget>
+#include <QUrl>
+
+int main()
+{
+ QWidget w;
+ qtsparkle::Updater* updater = new qtsparkle::Updater(
+ QUrl("http://www.example.com/sparkle.xml"), &w);
+ updater->SetVersion("1.0");
+
+ return 0;
+}