Fix MacOSX OS compile and warnings
This commit is contained in:
@@ -28,22 +28,21 @@
|
|||||||
#include <QDirIterator>
|
#include <QDirIterator>
|
||||||
|
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
#define
|
|
||||||
#define OS_FILEPATTERN "edgetx-cpn-osx"
|
#define OS_FILEPATTERN "edgetx-cpn-osx"
|
||||||
#define OS_INSTALLER_EXTN "*.dmg"
|
#define OS_INSTALLER_EXTN "*.dmg"
|
||||||
#define OS_INSTALL_QUESTION tr("Would you like to open the disk image to install the new version?")
|
#define OS_INSTALL_QUESTION tr("Would you like to open the disk image to install the new version of Companion?")
|
||||||
#elif defined(Q_OS_WIN64)
|
#elif defined(Q_OS_WIN64)
|
||||||
#define OS_FILEPATTERN "edgetx-cpn-win64"
|
#define OS_FILEPATTERN "edgetx-cpn-win64"
|
||||||
#define OS_INSTALLER_EXTN "*.exe"
|
#define OS_INSTALLER_EXTN "*.exe"
|
||||||
#define OS_INSTALL_QUESTION tr("Would you like to launch the installer?")
|
#define OS_INSTALL_QUESTION tr("Would you like to launch the Companion installer?")
|
||||||
#elif defined(Q_OS_WIN32)
|
#elif defined(Q_OS_WIN32)
|
||||||
#define OS_FILEPATTERN "edgetx-cpn-win32"
|
#define OS_FILEPATTERN "edgetx-cpn-win32"
|
||||||
#define OS_INSTALLER_EXTN "*.exe"
|
#define OS_INSTALLER_EXTN "*.exe"
|
||||||
#define OS_INSTALL_QUESTION tr("Would you like to launch the installer?")
|
#define OS_INSTALL_QUESTION tr("Would you like to launch the Companion installer?")
|
||||||
#else
|
#else
|
||||||
#define OS_FILEPATTERN "edgetx-cpn-linux"
|
#define OS_FILEPATTERN "edgetx-cpn-linux"
|
||||||
#define OS_INSTALLER_EXTN "*.AppImage"
|
#define OS_INSTALLER_EXTN "*.AppImage"
|
||||||
#define OS_INSTALL_QUESTION tr("Would you like to open the app image to install the new version?")
|
#define OS_INSTALL_QUESTION tr("Would you like to open the app image to install the new version of Companion?")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UpdateCompanion::UpdateCompanion(QWidget * parent) :
|
UpdateCompanion::UpdateCompanion(QWidget * parent) :
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ class UpdateCompanion : public UpdateInterface
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool asyncInstall() override;
|
virtual bool asyncInstall() override;
|
||||||
virtual const QString currentRelease();
|
virtual const QString currentRelease() override;
|
||||||
virtual const QString currentVersion();
|
virtual const QString currentVersion() override;
|
||||||
virtual const bool isLatestRelease();
|
virtual const bool isLatestRelease() override;
|
||||||
virtual const bool isUpdateAvailable();
|
virtual const bool isUpdateAvailable() override;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user