Commit 7f95f4f1 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile without deprecated method

parent 4612670e
......@@ -44,6 +44,7 @@ find_package(KF5IdentityManagement ${IDENTITYMANAGER_LIB_VERSION} CONFIG REQUIRE
add_definitions(-DTRANSLATION_DOMAIN=\"libkcalutils5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
add_definitions( -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT )
add_definitions( -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 )
########### Targets ###########
add_subdirectory(src)
......
......@@ -21,6 +21,7 @@
#define GRANTLEETEMPLATEMANAGER_H_P
#include <QSharedPointer>
#include <QVariantHash>
namespace Grantlee
{
......
......@@ -162,7 +162,7 @@ bool HtmlExport::save(QTextStream *ts)
void HtmlExport::createMonthView(QTextStream *ts)
{
QDate start = fromDate();
start.setYMD(start.year(), start.month(), 1); // go back to first day in month
start.setDate(start.year(), start.month(), 1); // go back to first day in month
QDate end(start.year(), start.month(), start.daysInMonth());
......@@ -243,8 +243,8 @@ void HtmlExport::createMonthView(QTextStream *ts)
startyear += 1;
startmonth = 1;
}
start.setYMD(startyear, startmonth, 1);
end.setYMD(start.year(), start.month(), start.daysInMonth());
start.setDate(startyear, startmonth, 1);
end.setDate(start.year(), start.month(), start.daysInMonth());
}
}
......
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