summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_p.h
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-18 14:44:40 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-23 14:12:00 (GMT)
commit9205078f3b2d842735599fd74d6324a4d84bc275 (patch)
tree463912fffbb3848fbb0abf3b08f69f3be53799e5 /src/gui/kernel/qapplication_p.h
parent1b059b51b6d236ace4ec8c5203873caae250cf78 (diff)
downloadQt-9205078f3b2d842735599fd74d6324a4d84bc275.zip
Qt-9205078f3b2d842735599fd74d6324a4d84bc275.tar.gz
Qt-9205078f3b2d842735599fd74d6324a4d84bc275.tar.bz2
Clean up the font hash and palette hash stuff.
These are used enough (at least on the mac) to justify them being accessible in a private header. As a bonus it "hides" the actual container being used, so we could potentially sway it out with something different. Reviewed by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/kernel/qapplication_p.h')
-rw-r--r--src/gui/kernel/qapplication_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_p.h b/src/gui/kernel/qapplication_p.h
index a9e5d60..95b4fe5 100644
--- a/src/gui/kernel/qapplication_p.h
+++ b/src/gui/kernel/qapplication_p.h
@@ -200,6 +200,12 @@ public:
{ --threadData->loopLevel; }
};
+typedef QHash<QByteArray, QFont> FontHash;
+FontHash *qt_app_fonts_hash();
+
+typedef QHash<QByteArray, QPalette> PaletteHash;
+PaletteHash *qt_app_palettes_hash();
+
class Q_GUI_EXPORT QApplicationPrivate : public QCoreApplicationPrivate
{
Q_DECLARE_PUBLIC(QApplication)