Skip to content
Permalink
Browse files

Qt5 connections

  • Loading branch information
m-kuhn committed Mar 6, 2017
1 parent a188cee commit 53a60673feb464ed276fedb1026d507452482da3
@@ -37,7 +37,7 @@ QgsVectorLayer *QgsAttributeTableDelegate::layer( const QAbstractItemModel *mode
if ( tm )
return tm->layer();

const QgsAttributeTableFilterModel *fm = dynamic_cast<const QgsAttributeTableFilterModel *>( model );
const QgsAttributeTableFilterModel *fm = qobject_cast<const QgsAttributeTableFilterModel *>( model );
if ( fm )
return fm->layer();

@@ -50,7 +50,7 @@ const QgsAttributeTableModel *QgsAttributeTableDelegate::masterModel( const QAbs
if ( tm )
return tm;

const QgsAttributeTableFilterModel *fm = dynamic_cast<const QgsAttributeTableFilterModel *>( model );
const QgsAttributeTableFilterModel *fm = qobject_cast<const QgsAttributeTableFilterModel *>( model );
if ( fm )
return fm->masterModel();

@@ -658,7 +658,6 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
{
styles = QgsConditionalStyle::matchingConditionalStyles( layer()->conditionalStyles()->rowStyles(), QVariant(), mExpressionContext );
mRowStylesMap.insert( index.row(), styles );

}

QgsConditionalStyle rowstyle = QgsConditionalStyle::compressStyles( styles );

0 comments on commit 53a6067

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