Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PostGIS layer selection:
- actually do the geometry type lookup threaded
- combobox removed and replaced with multiple rows, one each geometry type
- add wait cursors while looking up tables and inserting layers



git-svn-id: http://svn.osgeo.org/qgis/trunk@7627 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 20, 2007
1 parent 6cc8071 commit dd475e2
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 130 deletions.
8 changes: 6 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -2071,9 +2071,11 @@ void QgisApp::addDatabaseLayer()
// add files to the map canvas
QStringList tables = dbs->selectedTables();

QApplication::setOverrideCursor(Qt::waitCursor);

QString connInfo = dbs->connInfo();
// for each selected table, connect to the database, parse the WKT geometry,
// and build a cavnasitem for it
// and build a canvasitem for it
// readWKB(connInfo,tables);
QStringList::Iterator it = tables.begin();
while (it != tables.end())
Expand All @@ -2086,7 +2088,6 @@ void QgisApp::addDatabaseLayer()
{
// register this layer with the central layers registry
QgsMapLayerRegistry::instance()->addMapLayer(layer);

}
else
{
Expand All @@ -2097,6 +2098,9 @@ void QgisApp::addDatabaseLayer()
//qWarning("incrementing iterator");
++it;
}

QApplication::restoreOverrideCursor();

statusBar()->message(mMapCanvas->extent().stringRep(2));
}

Expand Down

0 comments on commit dd475e2

Please sign in to comment.