Skip to content
Permalink
Browse files

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

on hi-dpi displays

(cherry picked from commit ac9a4ef)
  • Loading branch information
nyalldawson committed Dec 29, 2018
1 parent 916db92 commit 918a236a4a5fbf93d0375a3e815fca38cb2138fe
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 );
@@ -228,6 +228,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 918a236

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