summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2015-09-27 19:07:23 (GMT)
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2015-09-27 19:07:23 (GMT)
commita9e57b361393b083843f6b86f5fcb6a21cabf653 (patch)
tree6b891ef04538e46e5ff01b1003481c217ae6d661
parent841d4175ae45abe362fbca1efa586120ba21ee07 (diff)
Port away from KGlobalSettings.
-rw-r--r--src/detailedgraphicaloverview.cpp15
-rw-r--r--src/tableinfowidget.cpp3
2 files changed, 6 insertions, 12 deletions
diff --git a/src/detailedgraphicaloverview.cpp b/src/detailedgraphicaloverview.cpp
index 70d671d..1491690 100644
--- a/src/detailedgraphicaloverview.cpp
+++ b/src/detailedgraphicaloverview.cpp
@@ -18,18 +18,13 @@ email : cniehaus@kde.org
#include "kalziumdataobject.h"
#include "kalziumutils.h"
-//KDE-Includes
-#include <klocale.h>
-#include <kglobalsettings.h>
-#include <kglobal.h>
-
-
-//QT-Includes
+#include <KLocalizedString>
#include <QFile>
#include <QPainter>
#include <QSvgRenderer>
#include <QRect>
#include <QFileInfo>
+#include <QFontDatabase>
#include <QDebug>
#include <element.h>
@@ -115,9 +110,9 @@ void DetailedGraphicalOverview::paintEvent(QPaintEvent*)
p.setBrush(Qt::black);
p.setBrush(Qt::NoBrush);
- QFont fA = KGlobalSettings::generalFont();
- QFont fB = KGlobalSettings::generalFont();
- QFont fC = KGlobalSettings::generalFont();
+ QFont fA = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
+ QFont fB = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
+ QFont fC = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
fA.setPointSize(fA.pointSize() + 20); //Huge font
fA.setBold(true);
diff --git a/src/tableinfowidget.cpp b/src/tableinfowidget.cpp
index 3fab523..f818991 100644
--- a/src/tableinfowidget.cpp
+++ b/src/tableinfowidget.cpp
@@ -20,8 +20,7 @@
#include "prefs.h"
#include "kalziumschemetype.h"
-#include <klocale.h>
-#include <kglobalsettings.h>
+#include <KLocalizedString>
#include "psetables.h"