Skip to content

Commit

Permalink
switch some builds to Qt 6.5.1 (#1119)
Browse files Browse the repository at this point in the history
* update some builds to Qt 6.5.1

* conditional code for QVersionNumber evolution
  • Loading branch information
tsteven4 authored May 25, 2023
1 parent c3e7b7e commit 26938b0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
GENERATOR: 'Ninja'
RELEASE: true
os: macos-12
- QT_VERSION: '6.5.0'
- QT_VERSION: '6.5.1'
XCODE_VERSION: '14.2'
GENERATOR: 'Ninja'
RELEASE: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
GENERATOR: 'Visual Studio 17 2022'
RELEASE: false
os: windows-latest
- QT_VERSION: '6.2.4'
- QT_VERSION: '6.5.1'
ARCH: 'amd64'
HOST_ARCH: 'amd64'
COMPILER: 'msvc2019_64'
Expand Down
49 changes: 28 additions & 21 deletions gui/upgrade.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,29 @@
*/

#include "upgrade.h"
#include <qglobal.h> // for qDebug
#include <QByteArray> // for QByteArray
#include <QDebug> // for QDebug
#include <QLocale> // for QLocale
#include <QSysInfo> // for QSysInfo
#include <QUrl> // for QUrl
#include <QVariant> // for QVariant
#include <QVersionNumber> // for QVersionNumber, operator<, operator==
#include <Qt> // for ISODate, RichText
#include <QDesktopServices> // for QDesktopServices
#include <QNetworkAccessManager> // for QNetworkAccessManager
#include <QNetworkReply> // for QNetworkReply, QNetworkReply::NoError
#include <QNetworkRequest> // for QNetworkRequest, QNetworkRequest::ContentTypeHeader, QNetworkRequest::HttpReasonPhraseAttribute, QNetworkRequest::HttpStatusCodeAttribute, QNetworkRequest::NoLessSafeRedirectPolicy, QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::Redi...
#include <QMessageBox> // for QMessageBox, QMessageBox::Yes, operator|, QMessageBox::No
#include <QtXml/QDomDocument> // for QDomDocument
#include <QtXml/QDomElement> // for QDomElement
#include <QtXml/QDomNode> // for QDomNode
#include <QtXml/QDomNodeList> // for QDomNodeList
#include "gbversion.h" // for VERSION
#include "babeldata.h" // for BabelData
#include "format.h" // for Format

#include <QByteArray> // for QByteArray
#include <QDebug> // for QDebug
#include <QDesktopServices> // for QDesktopServices
#include <QDomDocument> // for QDomDocument
#include <QDomElement> // for QDomElement
#include <QDomNode> // for QDomNode
#include <QDomNodeList> // for QDomNodeList
#include <QLocale> // for QLocale
#include <QMessageBox> // for QMessageBox, QMessageBox::Yes, operator|, QMessageBox::No
#include <QNetworkAccessManager> // for QNetworkAccessManager
#include <QNetworkReply> // for QNetworkReply, QNetworkReply::NoError
#include <QNetworkRequest> // for QNetworkRequest, QNetworkRequest::ContentTypeHeader, QNetworkRequest::HttpReasonPhraseAttribute, QNetworkRequest::HttpStatusCodeAttribute, QNetworkRequest::NoLessSafeRedirectPolicy, QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::RedirectionTar...
#include <QSysInfo> // for QSysInfo
#include <QUrl> // for QUrl
#include <QVariant> // for QVariant, operator!=
#include <QVersionNumber> // for QVersionNumber, operator<, operator==
#include <Qt> // for ISODate, RichText
#include <QtGlobal> // for qDebug, qsizetype, QT_VERSION, QT_VERSION_CHECK

#include "babeldata.h" // for BabelData
#include "format.h" // for Format
#include "gbversion.h" // for VERSION


#if 0
Expand Down Expand Up @@ -170,8 +172,13 @@ UpgradeCheck::updateStatus UpgradeCheck::getStatus()
// this function to sort that out. (See what I did there? Bwaaaahah!)
bool UpgradeCheck::suggestUpgrade(const QString& from, const QString& to)
{
#if (QT_VERSION < QT_VERSION_CHECK(6, 4, 0))
int fromIndex = 0;
int toIndex = 0;
#else
qsizetype fromIndex = 0;
qsizetype toIndex = 0;
#endif
QVersionNumber fromVersion = QVersionNumber::fromString(from, &fromIndex);
QVersionNumber toVersion = QVersionNumber::fromString(to, &toIndex);

Expand Down
1 change: 1 addition & 0 deletions tools/ci_install_qt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ qtdatavis3d \
qtlottie \
qtnetworkauth \
qtquick3d \
qtquick3dphysics \
qtquicktimeline \
qtwebglplugin \
qtshadertools \
Expand Down

0 comments on commit 26938b0

Please sign in to comment.