Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix incorrect tabs order when adding new text format via style manager
(fix #33056)

(cherry picked from commit cff6d5f)
  • Loading branch information
alexbruy authored and nyalldawson committed Mar 20, 2020
1 parent a9a8684 commit 0b01508
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/gui/qgstextformatwidget.cpp
Expand Up @@ -525,7 +525,12 @@ void QgsTextFormatWidget::setWidgetMode( QgsTextFormatWidget::Mode mode )
delete mLabelingOptionsListWidget->takeItem( 5 );
mOptionsTab->removeTab( 7 );
mOptionsTab->removeTab( 6 );
mOptionsTab->removeTab( 5 );
mOptionsTab->removeTab( 3 );
mLabelStackedWidget->removeWidget( mLabelPage_Rendering );
mLabelStackedWidget->removeWidget( mLabelPage_Callouts );
mLabelStackedWidget->removeWidget( mLabelPage_Mask );
mLabelStackedWidget->removeWidget( mLabelPage_Placement );
mLabelStackedWidget->setCurrentIndex( 0 );

frameLabelWith->hide();
mDirectSymbolsFrame->hide();
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgstextformatwidgetbase.ui
Expand Up @@ -3634,7 +3634,7 @@ font-style: italic;</string>
</item>
</layout>
</widget>
<widget class="QWidget" name="page">
<widget class="QWidget" name="mLabelPage_Callouts">
<layout class="QVBoxLayout" name="verticalLayout_14">
<property name="leftMargin">
<number>0</number>
Expand Down

0 comments on commit 0b01508

Please sign in to comment.