Skip to content
Permalink
Browse files

Fix some label settings hidpi issues

  • Loading branch information
nyalldawson committed Feb 2, 2019
1 parent 9a8c0d2 commit 599b0c8861a1a416835e5cd493a8106846de1d1e
Showing with 21 additions and 0 deletions.
  1. +21 −0 src/gui/qgstextformatwidget.cpp
@@ -82,6 +82,27 @@ void QgsTextFormatWidget::initWidget()

const int iconSize = QgsGuiUtils::scaleIconSize( 20 );
mOptionsTab->setIconSize( QSize( iconSize, iconSize ) );
const int iconSize32 = QgsGuiUtils::scaleIconSize( 32 );
const int iconSize18 = QgsGuiUtils::scaleIconSize( 18 );
mPointOffsetAboveLeft->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetAbove->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetAboveRight->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetLeft->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetOver ->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetRight->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetBelowLeft->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetBelow->setIconSize( QSize( iconSize32, iconSize18 ) );
mPointOffsetBelowRight->setIconSize( QSize( iconSize32, iconSize18 ) );

const int buttonSize = QgsGuiUtils::scaleIconSize( 24 );
mFontUnderlineBtn->setMinimumSize( buttonSize, buttonSize );
mFontUnderlineBtn->setMaximumSize( buttonSize, buttonSize );
mFontStrikethroughBtn->setMinimumSize( buttonSize, buttonSize );
mFontStrikethroughBtn->setMaximumSize( buttonSize, buttonSize );
mFontBoldBtn->setMinimumSize( buttonSize, buttonSize );
mFontBoldBtn->setMaximumSize( buttonSize, buttonSize );
mFontItalicBtn->setMinimumSize( buttonSize, buttonSize );
mFontItalicBtn->setMaximumSize( buttonSize, buttonSize );

mPreviewScaleComboBox->setMapCanvas( mMapCanvas );
mPreviewScaleComboBox->setShowCurrentScaleButton( true );

0 comments on commit 599b0c8

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