Mercurial > hg > svgui
comparison widgets/MenuTitle.h @ 1590:e660a00bc3b9
That didn't work well on a machine with a higher scaled-pixel ratio, try this
author | Chris Cannam |
---|---|
date | Fri, 03 Apr 2020 11:35:36 +0100 |
parents | 2108af725460 |
children |
comparison
equal
deleted
inserted
replaced
1589:27ea5d61b402 | 1590:e660a00bc3b9 |
---|---|
28 public: | 28 public: |
29 static void addTitle(QMenu *m, QString text) { | 29 static void addTitle(QMenu *m, QString text) { |
30 | 30 |
31 #ifdef Q_OS_LINUX | 31 #ifdef Q_OS_LINUX |
32 static int leftIndent = | 32 static int leftIndent = |
33 (ViewManager::scalePixelSize(5) + | 33 (ViewManager::scalePixelSize(8) + |
34 2 * qApp->style()->pixelMetric(QStyle::PM_SmallIconSize)); | 34 qApp->style()->pixelMetric(QStyle::PM_SmallIconSize)); |
35 #else | 35 #else |
36 #ifdef Q_OS_WIN | 36 #ifdef Q_OS_WIN |
37 static int leftIndent = | 37 static int leftIndent = |
38 (9 + qApp->style()->pixelMetric(QStyle::PM_SmallIconSize)); | 38 (9 + qApp->style()->pixelMetric(QStyle::PM_SmallIconSize)); |
39 #else | 39 #else |