Navigation Menu

Skip to content

Commit

Permalink
[layout][ux] Avoid too short variable editor in layout properties
Browse files Browse the repository at this point in the history
on hi-dpi displays

(cherry picked from commit ac9a4ef)
  • Loading branch information
nyalldawson committed Dec 29, 2018
1 parent 916db92 commit 918a236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/layout/qgslayoutpropertieswidget.cpp
Expand Up @@ -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 );
Expand Down
2 changes: 2 additions & 0 deletions src/gui/layout/qgslayoutitemwidget.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit 918a236

Please sign in to comment.