diff options
Diffstat (limited to 'src/gui/text/qfontdatabase.h')
-rw-r--r-- | src/gui/text/qfontdatabase.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/text/qfontdatabase.h b/src/gui/text/qfontdatabase.h index 05f1a85f24..4e8f718962 100644 --- a/src/gui/text/qfontdatabase.h +++ b/src/gui/text/qfontdatabase.h @@ -60,6 +60,7 @@ class Q_GUI_EXPORT QFontDatabase { Q_GADGET Q_ENUMS(WritingSystem) + Q_ENUMS(SystemFont) public: // do not re-order or delete entries from this enum without updating the // QPF2 format and makeqpf!! @@ -106,6 +107,13 @@ public: WritingSystemsCount }; + enum SystemFont { + GeneralFont, + FixedFont, + TitleFont, + SmallestReadableFont + }; + static QList<int> standardSizes(); QFontDatabase(); @@ -142,7 +150,11 @@ public: static bool removeApplicationFont(int id); static bool removeAllApplicationFonts(); - static bool supportsThreadedFontRendering(); +#if QT_DEPRECATED_SINCE(5, 2) + QT_DEPRECATED static inline bool supportsThreadedFontRendering() { return true; } +#endif + + static QFont systemFont(SystemFont type); private: static void createDatabase(); |