Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Conversation

seshagiriprabhu
Copy link
Contributor

Currently, Tox-Qt-GUI doesn't have multi-select support in the friendsWidget. With this patch, users will be able to select multiple friends and remove them.
blob3

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use C++11's foreach loop over Qt's foreach. In that case you can even use

for (const QModelIndex& selectedIndex : friendView->selectionModel()->selectedIndexes()) {

Also, your for-loop shouldn't have the opening brace on the next line.

@nurupo
Copy link
Owner

nurupo commented Mar 5, 2014

I guess it's a little harder that I thought, since we don't want a multi-select on item drag, which is the default behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants