From 38a6d68969d9fcf0fb0bfe32de433a13a0d5f33b Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Tue, 24 Jun 2014 13:37:13 +0200 Subject: [PATCH] kdelibs4support-- --- kmcommands.cpp | 3 ++- kmsystemtray.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kmcommands.cpp b/kmcommands.cpp index 27c1abb76..81cf6a306 100644 --- a/kmcommands.cpp +++ b/kmcommands.cpp @@ -148,6 +148,7 @@ using namespace KMime; #include #include #include +#include using namespace MailCommon; @@ -1081,7 +1082,7 @@ KMPrintCommand::KMPrintCommand(QWidget *parent, const Akonadi::Item &msg, { fetchScope().fetchFullPayload( true ); if ( MessageCore::GlobalSettings::useDefaultFonts() ) - mOverrideFont = KGlobalSettings::generalFont(); + mOverrideFont = QFontDatabase::systemFont(QFontDatabase::GeneralFont); else { mOverrideFont = MessageCore::GlobalSettings::self()->printFont(); } diff --git a/kmsystemtray.cpp b/kmsystemtray.cpp index 546960c08..866070917 100644 --- a/kmsystemtray.cpp +++ b/kmsystemtray.cpp @@ -42,6 +42,7 @@ #include #include #include +#include using namespace MailCommon; @@ -210,7 +211,7 @@ void KMSystemTray::updateCount() const int overlaySize = KIconLoader::SizeSmallMedium; const QString countString = QString::number( mCount ); - QFont countFont = KGlobalSettings::generalFont(); + QFont countFont = QFontDatabase::systemFont(QFontDatabase::GeneralFont); countFont.setBold(true); // decrease the size of the font for the number of unread messages if the