Mercurial > hg > sonic-visualiser
changeset 2476:6a46b1d4f0cd
Some layout adjustments for context menus
author | Chris Cannam |
---|---|
date | Wed, 25 Mar 2020 15:07:10 +0000 |
parents | 169cc70492bb |
children | dbc08fae9077 |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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("<b>Pane</b>")); - 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("<b>%2</b>") .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);