Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
181e48b5
Commit
181e48b5
authored
Dec 21, 2020
by
Laurent Montel
😁
Browse files
Use multiselection
parent
581cd035
Pipeline
#44876
passed with stage
in 9 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/groupmanagementwidgettest.cpp
View file @
181e48b5
...
...
@@ -40,4 +40,5 @@ void GroupManagementWidgetTest::shouldHaveDefaultValues()
auto
mListView
=
w
.
findChild
<
QListView
*>
(
QStringLiteral
(
"mListView"
));
QVERIFY
(
mListView
);
QCOMPARE
(
mListView
->
selectionMode
(),
QAbstractItemView
::
MultiSelection
);
}
src/groupmanagementwidget.cpp
View file @
181e48b5
...
...
@@ -32,6 +32,7 @@ GroupManagementWidget::GroupManagementWidget(QWidget *parent)
mListView
->
setObjectName
(
QStringLiteral
(
"mListView"
));
mainLayout
->
addWidget
(
mListView
);
mListView
->
setSelectionMode
(
QAbstractItemView
::
MultiSelection
);
init
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment