summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qapplication.h')
-rw-r--r--src/widgets/kernel/qapplication.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.h b/src/widgets/kernel/qapplication.h
index 52304c637a..f5645b0a11 100644
--- a/src/widgets/kernel/qapplication.h
+++ b/src/widgets/kernel/qapplication.h
@@ -100,7 +100,11 @@ public:
static QFont font(const QWidget*);
static QFont font(const char *className);
static void setFont(const QFont &, const char* className = nullptr);
+
+#if QT_DEPRECATED_SINCE(6,0)
+ QT_DEPRECATED_VERSION_X_6_0("Use the QFontMetricsF constructor instead.")
static QFontMetrics fontMetrics();
+#endif
static QWidgetList allWidgets();
static QWidgetList topLevelWidgets();