Delete multiple features in bulk#4119
Conversation
Pull Request Test Coverage Report for Build 18636599772Details
💛 - Coveralls |
tomasMizera
left a comment
There was a problem hiding this comment.
Tests + updates as discussed :)
This reverts commit 75fb005.
Screen.Recording.2025-10-01.at.8.09.53.PM.mov |
Withalion
left a comment
There was a problem hiding this comment.
I still believe we can do better than using (s) in the text, maybe propagate through the signal if it's single or multi edit and then use ternary operator inline.
https://doc.qt.io/qt-6/i18n-source-translation.html#handle-plural-forms |
|
Hi @kaustuvpokharel - we can close the multiselect drawer after features are deleted. |
|
Noted |
Dialog is not closed after deletion is done
Withalion
left a comment
There was a problem hiding this comment.
I would also add test for editing some points not just deleting
|
Moving to 2025.8.0 |
75c3747 to
eb72e98
Compare
Withalion
left a comment
There was a problem hiding this comment.
Seems alright now, let's see what @tomasMizera thinks.
tomasMizera
left a comment
There was a problem hiding this comment.
Just a couple of minor comments :)
12e5b14 to
dd53c26
Compare
|
I have added a scrollbar for the button text which might be larger than in English. Future-proof in case of adding multiple functionality buttons. Some use case scenarios are presented in these videos |
|
|
||
| property int countToDelete: 0 | ||
|
|
||
| title: qsTr( "Delete feature(s)", "", countToDelete ) |
There was a problem hiding this comment.
Have you checked if the plural form works properly even without %n? :)
* added a button prototype, replecating editButton * working deleteFeature for multiselect * astyle code convention * added confirmation dialog for deletion * added missing safe bottom space for the drawer dialog * delete button (MMButton -UI changed to follow figma color * uncommented the commented lines for testing * changed the function according to feeback, fixed dialog texts, added log info * code convention failing * Revert "code convention failing" This reverts commit 75fb005. * minor code-conv-style fix * wrong push * applied suggested changes * new file could be targeted by cmake * test file conntected and working with the project * added test for multiEditManager class completely/focused for deleteMulipleSelected Feature and skipped some potential tests cases of the entire class(multieditmanager) * MultiSelectDrawer closed after the deletion * cleaned exiting code, and removed redundent dependencies * pural suggestion implemented * text suggestion applied * added suggested changes * Formatted code * Added scrollbar --------- Co-authored-by: Gabriel Bolbotina <bolbotinagabriel@gmail.com>
* added a button prototype, replecating editButton * working deleteFeature for multiselect * astyle code convention * added confirmation dialog for deletion * added missing safe bottom space for the drawer dialog * delete button (MMButton -UI changed to follow figma color * uncommented the commented lines for testing * changed the function according to feeback, fixed dialog texts, added log info * code convention failing * Revert "code convention failing" This reverts commit 75fb005. * minor code-conv-style fix * wrong push * applied suggested changes * new file could be targeted by cmake * test file conntected and working with the project * added test for multiEditManager class completely/focused for deleteMulipleSelected Feature and skipped some potential tests cases of the entire class(multieditmanager) * MultiSelectDrawer closed after the deletion * cleaned exiting code, and removed redundent dependencies * pural suggestion implemented * text suggestion applied * added suggested changes * Formatted code * Added scrollbar --------- Co-authored-by: Gabriel Bolbotina <bolbotinagabriel@gmail.com>
* added a button prototype, replecating editButton * working deleteFeature for multiselect * astyle code convention * added confirmation dialog for deletion * added missing safe bottom space for the drawer dialog * delete button (MMButton -UI changed to follow figma color * uncommented the commented lines for testing * changed the function according to feeback, fixed dialog texts, added log info * code convention failing * Revert "code convention failing" This reverts commit 75fb005. * minor code-conv-style fix * wrong push * applied suggested changes * new file could be targeted by cmake * test file conntected and working with the project * added test for multiEditManager class completely/focused for deleteMulipleSelected Feature and skipped some potential tests cases of the entire class(multieditmanager) * MultiSelectDrawer closed after the deletion * cleaned exiting code, and removed redundent dependencies * pural suggestion implemented * text suggestion applied * added suggested changes * Formatted code * Added scrollbar --------- Co-authored-by: Gabriel Bolbotina <bolbotinagabriel@gmail.com>
Case:
Multiselect feature exists, but there is no way to delete all selected multiple feature at once, so pr includes the deleteMultipleSelect feature
Fix:
//! Deletes selected or toggled features upon called Q_INVOKABLE void deleteSelectedFeature();Tests:
testmultieditmanagerNote: this file is incomplete in a sense that it is missing other feature test cases which already existed inside the MultiEditManager class, as I was only requested to add tests for my new feature addition. But it needs more test cases to test other prior existing functions/methods.