Skip to content

Commit

Permalink
Fix some label settings hidpi issues
Browse files Browse the repository at this point in the history
(cherry picked from commit 599b0c8)
  • Loading branch information
nyalldawson committed Feb 3, 2019
1 parent 7678be1 commit fad0861
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/gui/qgstextformatwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit fad0861

Please sign in to comment.