Skip to content
Permalink
Browse files

Fix for bug that prevented postgis layers from being displayed in the…

… selector

dialog. This was due to the number of columns being explicitly specified prior
to adding items. The previous implementation works under Qt 4.1.1 but not under
Qt 4.1.0. This fix needs to be tested under 4.1.1 to make sure its compatible.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5032 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman
gsherman committed Mar 15, 2006
1 parent 3d7cfa1 commit 71da1127a1475232914cc081076b19d457c74ca4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsdbsourceselect.cpp
@@ -105,6 +105,8 @@ QgsDbSourceSelect::QgsDbSourceSelect(QgisApp *app, Qt::WFlags fl)

// Do some things that couldn't be done in designer
lstTables->horizontalHeader()->setStretchLastSection(true);
// Set the column count to 3 for the type, name, and sql
lstTables->setColumnCount(3);
QStringList labels;
labels += tr("Type"); labels += tr("Name"); labels += tr("Sql");
lstTables->setHorizontalHeaderLabels(labels);

0 comments on commit 71da112

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