Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tidy up line indenting (no changes to code)
git-svn-id: http://svn.osgeo.org/qgis/trunk@4931 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Mar 1, 2006
1 parent 6f9c60a commit 08bdd1b
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/gui/qgsdbsourceselect.cpp
Expand Up @@ -278,29 +278,29 @@ void QgsDbSourceSelect::on_btnConnect_clicked()
geomCol details;
if (getGeometryColumnInfo(pd, details))
{
geomCol::const_iterator iter = details.begin();
for (; iter != details.end(); ++iter)
{
QPixmap *p = 0;
if (iter->second == "POINT" || iter->second == "MULTIPOINT")
p = &pxPoint;
else if (iter->second == "MULTIPOLYGON" || iter->second == "POLYGON")
p = &pxPoly;
else if (iter->second == "LINESTRING" || iter->second == "MULTILINESTRING")
p = &pxLine;

if (p != 0)
{
Q3ListViewItem *lItem = new Q3ListViewItem(lstTables);
lItem->setText(1,iter->first);
lItem->setPixmap(0,*p);
lstTables->insertItem(lItem);
}
else
{
qDebug(("Unknown geometry type of " + iter->second).toLocal8Bit().data());
}
}
geomCol::const_iterator iter = details.begin();
for (; iter != details.end(); ++iter)
{
QPixmap *p = 0;
if (iter->second == "POINT" || iter->second == "MULTIPOINT")
p = &pxPoint;
else if (iter->second == "MULTIPOLYGON" || iter->second == "POLYGON")
p = &pxPoly;
else if (iter->second == "LINESTRING" || iter->second == "MULTILINESTRING")
p = &pxLine;

if (p != 0)
{
Q3ListViewItem *lItem = new Q3ListViewItem(lstTables);
lItem->setText(1,iter->first);
lItem->setPixmap(0,*p);
lstTables->insertItem(lItem);
}
else
{
qDebug(("Unknown geometry type of " + iter->second).toLocal8Bit().data());
}
}
}
else
{
Expand Down

0 comments on commit 08bdd1b

Please sign in to comment.