From 3de8e74d773185b4c72b9fc730fdbb7275bed2d6 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Fri, 26 Jan 2018 18:36:35 -0800 Subject: QDockWidget: Use theme font for title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the QPA theme provides support for dock widgets title font we never use it. This is a very similar solution to what we do in QMdiSubWindow, setting the platform theme font at few specific points. This patch also fixes the dock window title font on macOS, as queried in QCoreTextFontDatabase. Change-Id: Ie264e4e83e0d3d1e8f78bd378359f3063cc1d525 Reviewed-by: Morten Johan Sørvig --- src/widgets/widgets/qdockwidget_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/widgets/qdockwidget_p.h') diff --git a/src/widgets/widgets/qdockwidget_p.h b/src/widgets/widgets/qdockwidget_p.h index e35fd17fc2..766e4ed161 100644 --- a/src/widgets/widgets/qdockwidget_p.h +++ b/src/widgets/widgets/qdockwidget_p.h @@ -99,6 +99,8 @@ public: QDockWidget::DockWidgetFeatures features; Qt::DockWidgetAreas allowedAreas; + QFont font; + #ifndef QT_NO_ACTION QAction *toggleViewAction; #endif -- cgit v1.2.3