Skip to content

Commit

Permalink
Hide selection toggle button when it's not required
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Mar 25, 2019
1 parent d317cf4 commit 9b49f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsattributesformproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,20 +636,23 @@ void QgsAttributesFormProperties::mEditorLayoutComboBox_currentIndexChanged( int
mUiFileFrame->setVisible( false );
mAddTabOrGroupButton->setVisible( false );
mRemoveTabOrGroupButton->setVisible( false );
mInvertSelectionButton->setVisible( false );
break;

case 1:
mFormLayoutWidget->setVisible( true );
mUiFileFrame->setVisible( false );
mAddTabOrGroupButton->setVisible( true );
mRemoveTabOrGroupButton->setVisible( true );
mInvertSelectionButton->setVisible( true );
break;

case 2:
mFormLayoutWidget->setVisible( false );
mUiFileFrame->setVisible( true );
mAddTabOrGroupButton->setVisible( false );
mRemoveTabOrGroupButton->setVisible( false );
mInvertSelectionButton->setVisible( false );
break;
}
}
Expand Down

0 comments on commit 9b49f8d

Please sign in to comment.