summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbscreen.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-04-17 12:44:36 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-22 18:35:52 +0200
commit241ee2ee4208eb6b338390f82b71f1b1d7c4c5b0 (patch)
tree90d41086a914ebddc6ed4170e7337c27e40acb90 /src/plugins/platforms/xcb/qxcbscreen.h
parentd64274d4ffd0556e3de6da82cb8220ebba2d9186 (diff)
Read correct font hinting config on Gnome/Unity
Fixes regression against Qt 4. This tries to recreate the logic from 5c46d9a4c85abbcc0b5db2bbbafded3efd784cd9 in Qt 4, where we on Gnome would override the default hint style specified in FontConfig with Xft.hintstyle settings. This is the configuration used for changing the hint style in the Gnome Tweak Tool. Task-number: QTBUG-29582 Change-Id: I6b9fe2c8ff55ff080d034e5a53fc8cbb49f7651f Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbscreen.h')
-rw-r--r--src/plugins/platforms/xcb/qxcbscreen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbscreen.h b/src/plugins/platforms/xcb/qxcbscreen.h
index 4c7d7f2c1c..c3b13fd1ea 100644
--- a/src/plugins/platforms/xcb/qxcbscreen.h
+++ b/src/plugins/platforms/xcb/qxcbscreen.h
@@ -50,6 +50,8 @@
#include "qxcbobject.h"
+#include <private/qfontengine_p.h>
+
QT_BEGIN_NAMESPACE
class QXcbConnection;
@@ -97,7 +99,13 @@ public:
void updateRefreshRate();
void readXResources();
+
+ QFontEngine::HintStyle hintStyle() const { return m_hintStyle; }
private:
+ static bool xResource(const QByteArray &identifier,
+ const QByteArray &expectedIdentifier,
+ int *value);
+
xcb_screen_t *m_screen;
xcb_randr_crtc_t m_crtc;
QString m_outputName;
@@ -116,6 +124,7 @@ private:
QXcbCursor *m_cursor;
int m_refreshRate;
int m_forcedDpi;
+ QFontEngine::HintStyle m_hintStyle;
};
QT_END_NAMESPACE