mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-13 05:54:06 -07:00
fix: fix qt5 builds on macos 15 (#5923)
Although this config is not built on CI, while trying to compile locally, the build failed due to warnings and -Werror. Some qt functions were actually deprecated (but not removed) before version 6.0.0 and clang (righfully) complains about comparison between different types of enums.
This commit is contained in:
parent
5fc64bd8b0
commit
52c6af4b21
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ RemoteClient::RemoteClient(QObject *parent)
|
||||||
connect(socket, &QTcpSocket::connected, this, &RemoteClient::slotConnected);
|
connect(socket, &QTcpSocket::connected, this, &RemoteClient::slotConnected);
|
||||||
connect(socket, &QTcpSocket::readyRead, this, &RemoteClient::readData);
|
connect(socket, &QTcpSocket::readyRead, this, &RemoteClient::readData);
|
||||||
|
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||||
connect(socket, &QTcpSocket::errorOccurred, this, &RemoteClient::slotSocketError);
|
connect(socket, &QTcpSocket::errorOccurred, this, &RemoteClient::slotSocketError);
|
||||||
#else
|
#else
|
||||||
connect(socket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &RemoteClient::slotSocketError);
|
connect(socket, qOverload<QAbstractSocket::SocketError>(&QTcpSocket::error), this, &RemoteClient::slotSocketError);
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ void ShortcutTreeView::currentChanged(const QModelIndex ¤t, const QModelIn
|
||||||
*/
|
*/
|
||||||
void ShortcutTreeView::updateSearchString(const QString &searchString)
|
void ShortcutTreeView::updateSearchString(const QString &searchString)
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION > QT_VERSION_CHECK(5, 14, 0)
|
||||||
const auto skipEmptyParts = Qt::SkipEmptyParts;
|
const auto skipEmptyParts = Qt::SkipEmptyParts;
|
||||||
#else
|
#else
|
||||||
const auto skipEmptyParts = QString::SkipEmptyParts;
|
const auto skipEmptyParts = QString::SkipEmptyParts;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue