Skip to content
Permalink
Browse files

[FEATURE] store column width for postgres layer selection dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12401 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 10, 2009
1 parent ef577ea commit e83b6168a479cf01bb11b61b8405433a30a75f0e
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/app/qgspgsourceselect.cpp
@@ -86,6 +86,11 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WFlags fl )
mSearchColumnComboBox->setCurrentIndex( 2 );

restoreGeometry( settings.value( "/Windows/PgSourceSelect/geometry" ).toByteArray() );

for ( int i = 0; i < mTableModel.columnCount(); i++ )
{
mTablesTreeView->setColumnWidth( i, settings.value( QString( "/Windows/PgSourceSelect/columnWidths/%1" ).arg( i ), mTablesTreeView->columnWidth( i ) ).toInt() );
}
}
/** Autoconnected SLOTS **/
// Slot for adding a new connection
@@ -255,6 +260,11 @@ QgsPgSourceSelect::~QgsPgSourceSelect()

QSettings settings;
settings.setValue( "/Windows/PgSourceSelect/geometry", saveGeometry() );

for ( int i = 0; i < mTableModel.columnCount(); i++ )
{
settings.setValue( QString( "/Windows/PgSourceSelect/columnWidths/%1" ).arg( i ), mTablesTreeView->columnWidth( i ) );
}
}

void QgsPgSourceSelect::populateConnectionList()

0 comments on commit e83b616

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