Skip to content
Permalink
Browse files

testqgsattributetable.cpp: fix build with qt 5.5

  • Loading branch information
rouault committed Jan 22, 2019
1 parent 69b199a commit e1146df80cabc22606cf22f5dd7ab02ecb480f3e
Showing with 7 additions and 1 deletion.
  1. +7 −1 tests/src/app/testqgsattributetable.cpp
@@ -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 );

0 comments on commit e1146df

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