Skip to content
Permalink
Browse files

Hide selection toggle button when it's not required

  • Loading branch information
elpaso committed Mar 25, 2019
1 parent d317cf4 commit 9b49f8d948a9b631107db40907f84fcb30059509
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsattributesformproperties.cpp
@@ -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;
}
}

0 comments on commit 9b49f8d

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