Skip to content

Commit

Permalink
testqgsattributetable.cpp: fix build with qt 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 22, 2019
1 parent 69b199a commit e1146df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/src/app/testqgsattributetable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,13 @@ void TestQgsAttributeTable::testOrderColumn()
QVector<QgsAttributeTableConfig::ColumnConfig> columns = config.columns();

// move last column in first position
columns.move( 2, 0 );
// columns.move( 2, 0 ); // not available on QT 5.5
auto col0 = columns[0];
auto col1 = columns[1];
auto col2 = columns[2];
columns[0] = col2;
columns[1] = col0;
columns[2] = col1;
config.setColumns( columns );

dlg->mMainView->setAttributeTableConfig( config );
Expand Down

0 comments on commit e1146df

Please sign in to comment.