Skip to content
Permalink
Browse files

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/qgis@7627 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 20, 2007
1 parent 2e0da00 commit fd07c213ae95b79b4280838b60c531d69b6aecf5
Showing with 113 additions and 130 deletions.
  1. +6 −2 src/app/qgisapp.cpp
  2. +93 −121 src/app/qgsdbsourceselect.cpp
  3. +14 −7 src/app/qgsdbsourceselect.h
@@ -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())
@@ -2086,7 +2088,6 @@ void QgisApp::addDatabaseLayer()
{
// register this layer with the central layers registry
QgsMapLayerRegistry::instance()->addMapLayer(layer);

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

QApplication::restoreOverrideCursor();

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

0 comments on commit fd07c21

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