mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix regression in KItemListControllerTest
Since commit 66ce4db487
, enabling or
disabling groupling may change the number of columns in the view.
Therefore, the test should first change the "grouping" setting and then
change the view geometry to make sure that the column count is correct.
This commit is contained in:
parent
97cde85b77
commit
61390b201a
1 changed files with 3 additions and 3 deletions
|
@ -447,15 +447,15 @@ void KItemListControllerTest::testKeyboardNavigation()
|
|||
m_view->setScrollOrientation(scrollOrientation);
|
||||
QCOMPARE(m_view->scrollOrientation(), scrollOrientation);
|
||||
|
||||
adjustGeometryForColumnCount(columnCount);
|
||||
QCOMPARE(m_view->m_layouter->m_columnCount, columnCount);
|
||||
|
||||
m_controller->setSelectionBehavior(selectionBehavior);
|
||||
QCOMPARE(m_controller->selectionBehavior(), selectionBehavior);
|
||||
|
||||
m_model->setGroupedSorting(groupingEnabled);
|
||||
QCOMPARE(m_model->groupedSorting(), groupingEnabled);
|
||||
|
||||
adjustGeometryForColumnCount(columnCount);
|
||||
QCOMPARE(m_view->m_layouter->m_columnCount, columnCount);
|
||||
|
||||
while (!testList.isEmpty()) {
|
||||
const QPair<KeyPress, ViewState> test = testList.takeFirst();
|
||||
const Qt::Key key = test.first.m_key;
|
||||
|
|
Loading…
Reference in a new issue