From f2f5742ba5f6598383075373985be0641a355e59 Mon Sep 17 00:00:00 2001
From: gangphon "
- + tr ("Congratulations! You are running the "
- "latest version of %1").arg (moduleName())
- + "
");
-
- box.exec();
- }
-}
-
-/**
- * Compares the two version strings (\a x and \a y).
- * - If \a x is greater than \y, this function returns \c true.
- * - If \a y is greater than \x, this function returns \c false.
- * - If both versions are the same, this function returns \c false.
- */
-bool Updater::compare(const QString& x, const QString& y) {
- QStringList versionsX = x.split(".");
- QStringList versionsY = y.split(".");
- int count = qMin(versionsX.count(), versionsY.count());
- for (int i = 0; i < count; ++i) {
- int a = QString(versionsX.at (i)).toInt();
- int b = QString(versionsY.at (i)).toInt();
- if(a >= b) return true;
- else if(b > a) return false;
- }
- return versionsY.count() < versionsX.count();
-}
+/*
+ * Copyright (c) 2014-2016 Alex Spataru "
+ + tr ("Congratulations! You are running the "
+ "latest version of %1").arg (moduleName())
+ + "
");
+
+ box.exec();
+ }
+}
+
+/**
+ * Compares the two version strings (\a x and \a y).
+ * - If \a x is greater than \y, this function returns \c true.
+ * - If \a y is greater than \x, this function returns \c false.
+ * - If both versions are the same, this function returns \c false.
+ */
+bool Updater::compare(const QString& x, const QString& y) {
+ QStringList versionsX = x.split(".");
+ QStringList versionsY = y.split(".");
+ int count = qMin(versionsX.count(), versionsY.count());
+ for (int i = 0; i < count; ++i) {
+ int a = QString(versionsX.at (i)).toInt();
+ int b = QString(versionsY.at (i)).toInt();
+ if(a >= b) return true;
+ else if(b > a) return false;
+ }
+ return versionsY.count() < versionsX.count();
+}
diff --git a/LedOK/QSimpleUpdater/src/Updater.h b/LedOK/QSimpleUpdater/src/Updater.h
index 984d30d..9e9c064 100644
--- a/LedOK/QSimpleUpdater/src/Updater.h
+++ b/LedOK/QSimpleUpdater/src/Updater.h
@@ -1,156 +1,156 @@
-/*
- * Copyright (c) 2014-2016 Alex Spataru " +
- QString::fromUtf8 (reply) +
- "
If you need to store more information on the " - "appcast (or use another format), just use the " - "QSimpleUpdater::setCustomAppcast() function. " - "It allows your application to interpret the appcast " - "using your code and not QSU's code.
"; - - m_ui->changelogText->setText (text); - } -} +/* + * Copyright (c) 2014-2016 Alex Spataru" + + QString::fromUtf8 (reply) + + "
If you need to store more information on the " + "appcast (or use another format), just use the " + "QSimpleUpdater::setCustomAppcast() function. " + "It allows your application to interpret the appcast " + "using your code and not QSU's code.
"; + + m_ui->changelogText->setText (text); + } +} diff --git a/LedOK/QSimpleUpdater/tutorial/src/Window.h b/LedOK/QSimpleUpdater/tutorial/src/Window.h index ccd8da2..027508e 100644 --- a/LedOK/QSimpleUpdater/tutorial/src/Window.h +++ b/LedOK/QSimpleUpdater/tutorial/src/Window.h @@ -1,40 +1,40 @@ -/* - * Copyright (c) 2014-2016 Alex Spataru