Skip to content
Permalink
Browse files

add tooltips to abstract field for WMS/WFS layers (addresses #4406).

Also save and restore WFS dialog size and position (addresses #206)
  • Loading branch information
alexbruy committed Jan 18, 2012
1 parent fbe2d99 commit 03d3bed548f0134cdfcf8c2a460f87838b8f5693
Showing with 10 additions and 1 deletion.
  1. +9 −1 src/providers/wfs/qgswfssourceselect.cpp
  2. +1 −0 src/providers/wms/qgswmssourceselect.cpp
@@ -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;
}

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

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

0 comments on commit 03d3bed

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