From a5c6bad4f02d78dff2afca84fd0c9fc12c3eaf49 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Sat, 27 Dec 2014 18:10:34 +0300 Subject: Take the size and the icon size for MDI buttons from a style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way they can be DPI-dependent. Change-Id: I117c337aaa3e2bf6fb85cb3b04bbbccd9db41070 Reviewed-by: Thorbjørn Lund Martsum --- src/widgets/styles/qstyle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/widgets/styles/qstyle.cpp') diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp index 103c49496e..16a11e6029 100644 --- a/src/widgets/styles/qstyle.cpp +++ b/src/widgets/styles/qstyle.cpp @@ -1494,6 +1494,11 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, \value PM_HeaderDefaultSectionSizeVertical The default size of sections in a vertical header. This enum value has been introduced in Qt 5.5. + \value PM_TitleBarButtonIconSize The size of button icons on a title bar. + This enum value has been introduced in Qt 5.8. + \value PM_TitleBarButtonSize The size of buttons on a title bar. + This enum value has been introduced in Qt 5.8. + \value PM_CustomBase Base value for custom pixel metrics. Custom values must be greater than this value. -- cgit v1.2.3