minor update -- point layers selected but not displayed (no repaint)

git-svn-id: http://svn.osgeo.org/qgis/trunk@21 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-07-11 05:12:31 +00:00
parent 91036becad
commit b0b6758731

View File

@ -67,6 +67,7 @@ QgisApp::QgisApp(QWidget *parent, const char * name, WFlags fl ) : QgisAppBase(p
QgisApp::~QgisApp(){
}
void QgisApp::addLayer(){
// only supports postgis layers at present
// show the postgis dialog
QgsDbSourceSelect *dbs = new QgsDbSourceSelect();
if(dbs->exec()){
@ -83,20 +84,13 @@ void QgisApp::addLayer(){
QgsDatabaseLayer *lyr = new QgsDatabaseLayer(connInfo, *it);
// add it to the mapcanvas collection
mapCanvas->addLayer(lyr);
// no drawing done -- need to pass the layer collection
// to the rendering engine (yet to be written)
++it;
}
}
// show the file dialog
/*
QFileDialog* fd = new QFileDialog( this, "file dialog", TRUE );
fd->setMode( QFileDialog::ExistingFile );
fd->setFilter("Shapefiles (*.shp)" );
if(fd->exec()){
QStringList files = fd->selectedFiles();
}
*/
}
void QgisApp::fileExit(){
QApplication::exit();