Commit 8aee8d40 authored by Volker Krause's avatar Volker Krause
Browse files

Compile with recent Qt 5.15

More QPrinter methods got deprecated there. DevicePixel no longer exists
as a unit, visually Point looks pretty much the same though.
parent 449f1cc0
Pipeline #38714 passed with stage
in 11 minutes and 27 seconds
......@@ -168,7 +168,7 @@ void CompactStyle::print(const KContacts::Addressee::List &contacts, PrintProgre
// print
QPrinter *printer = wizard()->printer();
printer->setPageMargins(20, 20, 20, 20, QPrinter::DevicePixel);
printer->setPageMargins(QMarginsF(20, 20, 20, 20), QPageLayout::Point);
progress->addMessage(i18n("Setting up document"));
......
......@@ -38,7 +38,7 @@ GrantleePrintStyle::~GrantleePrintStyle()
void GrantleePrintStyle::print(const KContacts::Addressee::List &contacts, PrintProgress *progress)
{
QPrinter *printer = wizard()->printer();
printer->setPageMargins(20, 20, 20, 20, QPrinter::DevicePixel);
printer->setPageMargins(QMarginsF(20, 20, 20, 20), QPageLayout::Point);
progress->addMessage(i18n("Setting up document"));
......
......@@ -107,7 +107,7 @@ MikesStyle::~MikesStyle()
void MikesStyle::print(const KContacts::Addressee::List &contacts, PrintProgress *progress)
{
QPrinter *printer = wizard()->printer();
printer->setPageMargins(20, 20, 20, 20, QPrinter::DevicePixel);
printer->setPageMargins(QMarginsF(20, 20, 20, 20), QPageLayout::Point);
progress->addMessage(i18n("Setting up document"));
......
......@@ -159,7 +159,7 @@ void RingBinderPrintStyle::print(const KContacts::Addressee::List &contacts, Pri
config.sync();
QPrinter *printer = wizard()->printer();
printer->setPageMargins(50, 20, 0, 50, QPrinter::DevicePixel);
printer->setPageMargins(QMarginsF(50, 20, 0, 50), QPageLayout::Point);
progress->addMessage(i18n("Setting up document"));
......
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