Skip to content
Permalink
Browse files

[layout][ux] Avoid too short variable editor in layout properties

on hi-dpi displays
  • Loading branch information
nyalldawson committed Dec 29, 2018
1 parent f0e7c9c commit ac9a4ef1e424ed55453b54d57e2767a02966707b
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/app/layout/qgslayoutpropertieswidget.cpp
  2. +2 −0 src/gui/layout/qgslayoutitemwidget.cpp
@@ -31,6 +31,8 @@ QgsLayoutPropertiesWidget::QgsLayoutPropertiesWidget( QWidget *parent, QgsLayout
setPanelTitle( tr( "Layout Properties" ) );
blockSignals( true );

mVariableEditor->setMinimumHeight( mVariableEditor->fontMetrics().height() * 15 );

updateSnappingElements();

mGridSpacingUnitsCombo->linkToWidget( mGridResolutionSpinBox );
@@ -233,6 +233,8 @@ QgsLayoutItemPropertiesWidget::QgsLayoutItemPropertiesWidget( QWidget *parent, Q
{
setupUi( this );

mVariableEditor->setMinimumHeight( mVariableEditor->fontMetrics().height() * 15 );

mItemRotationSpinBox->setClearValue( 0 );
mStrokeUnitsComboBox->linkToWidget( mStrokeWidthSpinBox );
mStrokeUnitsComboBox->setConverter( &item->layout()->renderContext().measurementConverter() );

0 comments on commit ac9a4ef

Please sign in to comment.
You can’t perform that action at this time.