Skip to content

Commit

Permalink
postgres provider: fix display of compound key checkboxes (followup e…
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 5, 2015
1 parent 969fc9c commit 2b0225b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/postgres/qgspgsourceselect.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit 2b0225b

Please sign in to comment.