Skip to content
Permalink
Browse files
wmts: use title instead of identifier (fixes #9391)
  • Loading branch information
jef-n committed Feb 15, 2014
1 parent b5897c7 commit edfce6897df0355bb2db1914dfe57c44e705a856
Showing with 11 additions and 5 deletions.
  1. +9 −3 src/providers/wms/qgswmssourceselect.cpp
  2. +2 −2 src/ui/qgswmssourceselectbase.ui
@@ -376,11 +376,17 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )

lstTilesets->setItem( row, 0, item );
lstTilesets->setItem( row, 1, new QTableWidgetItem( format ) );
lstTilesets->setItem( row, 2, new QTableWidgetItem( style.identifier ) );
QTableWidgetItem *styleItem = new QTableWidgetItem( l.title );

QTableWidgetItem *titleItem = new QTableWidgetItem( l.title.isEmpty() ? l.identifier : l.title );
if ( !l.abstract.isEmpty() )
styleItem->setToolTip( "<p>" + l.abstract + "</p>" );
titleItem->setToolTip( "<p>" + l.abstract + "</p>" );
lstTilesets->setItem( row, 2, titleItem );

QTableWidgetItem *styleItem = new QTableWidgetItem( style.title.isEmpty() ? style.identifier : style.title );
if ( !style.abstract.isEmpty() )
titleItem->setToolTip( "<p>" + style.abstract + "</p>" );
lstTilesets->setItem( row, 3, styleItem );

lstTilesets->setItem( row, 4, new QTableWidgetItem( setLink.tileMatrixSet ) );
lstTilesets->setItem( row, 5, new QTableWidgetItem( tileMatrixSets[ setLink.tileMatrixSet ].crs ) );

@@ -356,12 +356,12 @@
</column>
<column>
<property name="text">
<string>Style</string>
<string>Title</string>
</property>
</column>
<column>
<property name="text">
<string>Title</string>
<string>Style</string>
</property>
</column>
<column>

0 comments on commit edfce68

Please sign in to comment.