Skip to content

Commit e1146df

Browse files
committedJan 22, 2019
testqgsattributetable.cpp: fix build with qt 5.5
1 parent 69b199a commit e1146df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎tests/src/app/testqgsattributetable.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,13 @@ void TestQgsAttributeTable::testOrderColumn()
329329
QVector<QgsAttributeTableConfig::ColumnConfig> columns = config.columns();
330330

331331
// move last column in first position
332-
columns.move( 2, 0 );
332+
// columns.move( 2, 0 ); // not available on QT 5.5
333+
auto col0 = columns[0];
334+
auto col1 = columns[1];
335+
auto col2 = columns[2];
336+
columns[0] = col2;
337+
columns[1] = col0;
338+
columns[2] = col1;
333339
config.setColumns( columns );
334340

335341
dlg->mMainView->setAttributeTableConfig( config );

0 commit comments

Comments
 (0)