Skip to content

Commit

Permalink
Remove the empty Description column from Interface Customization dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and m-kuhn committed Oct 29, 2017
1 parent 2533960 commit 5b64af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/app/qgscustomization.cpp
Expand Up @@ -59,7 +59,7 @@ QgsCustomizationDialog::QgsCustomizationDialog( QWidget * parent, QSettings * se

init();
QStringList myHeaders;
myHeaders << tr( "Object name" ) << tr( "Label" ) << tr( "Description" );
myHeaders << tr( "Object name" ) << tr( "Label" );
treeWidget->setHeaderLabels( myHeaders );

mLastDirSettingsName = QStringLiteral( "/UI/lastCustomizationDir" );
Expand Down Expand Up @@ -354,7 +354,6 @@ QTreeWidgetItem *QgsCustomizationDialog::readWidgetsXmlNode( const QDomNode &nod
QStringList data( name );

data << myElement.attribute( QStringLiteral( "label" ), name );
data << myElement.attribute( QStringLiteral( "description" ), QLatin1String( "" ) );

QTreeWidgetItem *myItem = new QTreeWidgetItem( data );

Expand Down
7 changes: 1 addition & 6 deletions src/ui/qgscustomizationdialogbase.ui
Expand Up @@ -28,7 +28,7 @@
<enum>QAbstractItemView::SelectItems</enum>
</property>
<property name="columnCount">
<number>3</number>
<number>2</number>
</property>
<attribute name="headerVisible">
<bool>true</bool>
Expand All @@ -43,11 +43,6 @@
<string notr="true">2</string>
</property>
</column>
<column>
<property name="text">
<string notr="true">3</string>
</property>
</column>
</widget>
</item>
<item>
Expand Down

0 comments on commit 5b64af1

Please sign in to comment.