Remove the empty Description column from Interface Customization dialog

This commit is contained in:
Harrissou Sant-anna 2017-10-26 16:20:32 +02:00 committed by Matthias Kuhn
parent 2533960c20
commit 5b64af1365
2 changed files with 2 additions and 8 deletions

View File

@ -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" );
@ -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 );

View File

@ -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>
@ -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>