# HG changeset patch
# User Chris Cannam
# Date 1585148830 0
# Node ID 6a46b1d4f0cdb1864a1d15cea3e29e0b122d0c47
# Parent 169cc70492bbfaea608a30f488099d10a2757b34
Some layout adjustments for context menus
diff -r 169cc70492bb -r 6a46b1d4f0cd main/MainWindow.cpp
--- a/main/MainWindow.cpp Wed Mar 25 12:10:48 2020 +0000
+++ b/main/MainWindow.cpp Wed Mar 25 15:07:10 2020 +0000
@@ -5073,8 +5073,9 @@
QWidgetAction *wa = new QWidgetAction(m);
QLabel *title = new QLabel;
title->setText(tr("Pane"));
- title->setMargin(m_viewManager->scalePixelSize(2));
- title->setIndent(m_viewManager->scalePixelSize(12));
+ title->setMargin(m_viewManager->scalePixelSize(3));
+ title->setIndent(m_viewManager->scalePixelSize(12) +
+ qApp->style()->pixelMetric(QStyle::PM_SmallIconSize));
wa->setDefaultWidget(title);
m->addAction(wa);
@@ -5113,8 +5114,9 @@
(tr("%2")
.arg(XmlExportable::encodeEntities
(layer->getLayerPresentationName())));
- title->setMargin(m_viewManager->scalePixelSize(2));
- title->setIndent(m_viewManager->scalePixelSize(12));
+ title->setMargin(m_viewManager->scalePixelSize(3));
+ title->setIndent(m_viewManager->scalePixelSize(12) +
+ qApp->style()->pixelMetric(QStyle::PM_SmallIconSize));
wa->setDefaultWidget(title);
m->addAction(wa);