Made Qt 3.1.2 compatible.

Note:

QListViewItemIterator::QListViewItemIterator( item, iteratorFlags ) is a newer
member.  Use QListViewItemIterator::QListViewItemIterator( item ) instead.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1337 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mcoletti 2004-05-07 16:09:07 +00:00
parent e175dfc1ce
commit 891bacef69

View File

@ -286,9 +286,12 @@ void QgsLegend::removeLayer( QString const & layer_key )
// we don't then arbitrarily set firstChild()
// to be the current layer
QListViewItemIterator select_it(this, QListViewItemIterator::Selected);
// not Qt 3.1.2 compatible QListViewItemIterator select_it(this, QListViewItemIterator::Selected);
QListViewItemIterator select_it(this);
for ( ; select_it.current(); ++select_it )
{
if ( it.current()->isSelected() )
{
// if we even find ONE SELECTED ITEM, we're done since there's
// still at least one other layer that's selected
@ -302,6 +305,7 @@ void QgsLegend::removeLayer( QString const & layer_key )
break;
}
}
if ( ! select_it.current() )
{