Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9b2667b6 authored by Volker Krause's avatar Volker Krause

Add missing find_package calls and move away from obsolete Qt API

parent 3ed46aba
......@@ -27,6 +27,7 @@ set(KTNEF_LIB_VERSION ${PIM_VERSION})
set(CALENDARCORE_LIB_VERSION "5.6.40")
set(CALENDARUTILS_LIB_VERSION "5.6.40")
set(KCONTACTS_LIB_VERSION "5.6.40")
set(QT_REQUIRED_VERSION "5.8.0")
ecm_setup_version(PROJECT VARIABLE_PREFIX KTNEF
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ktnef_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5TnefConfigVersion.cmake"
......@@ -36,9 +37,11 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KTNEF
########### Find packages ###########
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Tnef")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
find_package(KF5CalendarCore ${CALENDARCORE_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarUtils ${CALENDARUTILS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Contacts ${KCONTACTS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5I18n ${KF5_VERSION} CONFIG REQUIRED)
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
......
......@@ -167,7 +167,7 @@ static QDateTime pureISOToLocalQDateTime(const QString &dtStr,
minute = dtStr.midRef(11, 2).toInt();
second = dtStr.midRef(13, 2).toInt();
}
tmpDate.setYMD(year, month, day);
tmpDate.setDate(year, month, day);
tmpTime.setHMS(hour, minute, second);
if (tmpDate.isValid() && tmpTime.isValid()) {
......
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