Skip to content
Permalink
Browse files

postgres provider: fix display of compound key checkboxes (followup e…

  • Loading branch information
jef-n committed Sep 5, 2015
1 parent 969fc9c commit 2b0225b1b6089afe89f6c997bdd905868a493870
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/postgres/qgspgsourceselect.cpp
@@ -36,6 +36,7 @@ email : sherman at mrcc.com
#include <QTextStream>
#include <QHeaderView>
#include <QStringList>
#include <QStyledItemDelegate>

/** Used to create an editor for when the user tries to change the contents of a cell */
QWidget *QgsPgSourceSelectDelegate::createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const
@@ -76,6 +77,7 @@ QWidget *QgsPgSourceSelectDelegate::createEditor( QWidget *parent, const QStyleO
if ( values.size() > 0 )
{
QComboBox *cb = new QComboBox( parent );
cb->setItemDelegate( new QStyledItemDelegate( parent ) );

QStandardItemModel *model = new QStandardItemModel( values.size(), 1, cb );

0 comments on commit 2b0225b

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