mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
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:
parent
91036becad
commit
b0b6758731
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user