Multiselect in coincontrol treewidget and display selected count - #11750
Multiselect in coincontrol treewidget and display selected count#11750elbandi wants to merge 1 commit into
Conversation
promag
left a comment
There was a problem hiding this comment.
Care to upload a screenshot with the diff?
There was a problem hiding this comment.
How about:
int count = selected.size();
ui->labelSelected->setVisible(count > 0);
ui->labelSelected->setText(tr("(%1 selected)").arg(count));There was a problem hiding this comment.
It hides the "(X selected)" label if no selection. like locked count
There was a problem hiding this comment.
ui->labelSelected->setVisible(count > 0); should hide when there's no selection.
There was a problem hiding this comment.
???,
placeholder string, as in labelLocked
There was a problem hiding this comment.
Don't know why that is there too, and I think there is no special reason. I guess it's ok since it is consistent with others.
There was a problem hiding this comment.
for (QTreeWidgetItem* item : selectedItems()) {There was a problem hiding this comment.
Comment should be "press spacebar -> toggle checkbox"?
32846d2 to
7cec76f
Compare
|
new commit pushed |
|
Tested a bit. I got confused by the selection count indicator label. Maybe remove the label (just add the multiselection possibility) or use a different help text for the new label... though I don't think it's necessary to have a such label (rarely saw this in multiselection use-cases). |
|
Rename the button to "(un)check all", eventually thats the right function. |
I have the same opinion here; the coin selection is already inherently multi-select, as multiple outputs can be checked. So adding another layer of multi-selection on top is confusing. It's no longer clear whether selection refers to "toggled checkbox" or "selected row". |
|
I agree this is confusing, yet also see the validity of the use case. Maybe @jonasschnelli 's idea + renaming the button to "(Un)check all" would be sufficient. |
|
I think we should remove the new label. Just allow the spacebar toggling. Seems much more clear to me then confusing with "selection" (multiple contexts of selection) |
|
Last post by the author was some time last year. Going to add "Up for grabs" label and closing. |
|
Sorry, i didnt know, what is the latest consensus about the text? |
|
@elbandi I guess do what @jonasschnelli suggested. When you're ready, ping someone to reopen the PR before you push the new version. |
This patch allow multiple out selection in coincontrol dialog.
Only for changing the checked state, locking need single select.
usecase: someone gets lost of payments from zpool/miningrigrentals/nicehash/etc, its easy to select inputs for sending (no need to click many times in intems or space-down-space-down-space-down... by keyboard)