Commit 1412c4ab authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt build system for building against qt6 (still missing porting

winId)
parent 61de2a9d
Pipeline #124199 passed with stage
in 33 seconds
......@@ -3,11 +3,8 @@ cmake_minimum_required(VERSION 3.16)
set(PROJECT_VERSION "5.24.80")
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.86")
set(KF5_MIN_VERSION "5.90")
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......@@ -19,6 +16,9 @@ include(ECMQtDeclareLoggingCategory)
include(KDEClangFormat)
include(KDEGitCommitHooks)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
......
......@@ -237,8 +237,9 @@ static void parsePrompt(const QString &prompt, QString &identifier, bool &ignore
int main(int argc, char **argv)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("ksshaskpass");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment