Skip to content

Commit

Permalink
Fix compatibility with Qt 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Apr 3, 2024
1 parent c6e75ba commit 264e618
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <QLibraryInfo>
#include <QCommandLineParser>
#include <QIcon>
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#include <QStyleHints>
#include <QStyle>
Expand Down Expand Up @@ -47,7 +48,8 @@ static bool checkDefaultIconTheme()
QStringLiteral("edit-paste"),
QStringLiteral("edit-find"), QStringLiteral("edit-find-replace"),
};
return std::all_of(std::begin(iconNames), std::end(iconNames), &QIcon::hasThemeIcon);
return std::all_of(std::begin(iconNames), std::end(iconNames),
qOverload<const QString&>(&QIcon::hasThemeIcon));
}

static void setDefaultIconTheme()
Expand Down

0 comments on commit 264e618

Please sign in to comment.