Skip to content

Commit

Permalink
add tooltips to abstract field for WMS/WFS layers (addresses #4406).
Browse files Browse the repository at this point in the history
Also save and restore WFS dialog size and position (addresses #206)
  • Loading branch information
alexbruy committed Jan 18, 2012
1 parent fbe2d99 commit 03d3bed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/providers/wfs/qgswfssourceselect.cpp
Expand Up @@ -62,12 +62,19 @@ QgsWFSSourceSelect::QgsWFSSourceSelect( QWidget* parent, Qt::WFlags fl, bool emb
populateConnectionList();
mProjectionSelector = new QgsGenericProjectionSelector( this );
mProjectionSelector->setMessage();

QSettings settings;
QgsDebugMsg( "restoring geometry" );
restoreGeometry( settings.value( "/Windows/WFSSourceSelect/geometry" ).toByteArray() );
}

QgsWFSSourceSelect::~QgsWFSSourceSelect()
{
delete mProjectionSelector;
QSettings settings;
QgsDebugMsg( "saving geometry" );
settings.setValue( "/Windows/WFSSourceSelect/geometry", saveGeometry() );

delete mProjectionSelector;
delete mConn;
}

Expand Down Expand Up @@ -178,6 +185,7 @@ void QgsWFSSourceSelect::capabilitiesReplyFinished()
newItem->setText( 0, featureType.title );
newItem->setText( 1, featureType.name );
newItem->setText( 2, featureType.abstract );
newItem->setToolTip( 2, "<font color=black>" + featureType.abstract + "</font>" );
newItem->setCheckState( 3, Qt::Checked );
treeWidget->addTopLevelItem( newItem );

Expand Down
1 change: 1 addition & 0 deletions src/providers/wms/qgswmssourceselect.cpp
Expand Up @@ -259,6 +259,7 @@ QgsNumericSortTreeWidgetItem *QgsWMSSourceSelect::createItem(
item->setText( 1, names[0].simplified() );
item->setText( 2, names[1].simplified() );
item->setText( 3, names[2].simplified() );
item->setToolTip( 3, "<font color=black>" + names[2].simplified() + "</font>" );

items[ id ] = item;

Expand Down

0 comments on commit 03d3bed

Please sign in to comment.