BUG: 408312
Needs ReviewPublic

Authored by malibushko on Mar 2 2020, 6:51 PM.

Details

Reviewers
SGOrava
Summary

Add filter for plugins quicker search
QLineEdit was added to UI form, then after the text in this line has been modified by
the user - line emits an signal and displayed list is updated. The filter works
comparing strings from the beginning, and does nothing when filter string is empty
To test the feature Preferences -> Extentions -> Enter data to the edit line
BUG: 408312

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
malibushko created this revision.Mar 2 2020, 6:51 PM
Restricted Application added a subscriber: falkon. · View Herald TranscriptMar 2 2020, 6:51 PM
malibushko requested review of this revision.Mar 2 2020, 6:51 PM
malibushko added a reviewer: SGOrava.

Thank you for your contribution.

Our Gitlab instance was moved just recently (few days ago).

src/lib/preferences/pluginsmanager.cpp
55

same here, I would keep a blank line after connect commands.

173

Please do not delete the blank line, or lines which you do not WANT to delete.

It is good to keep unrelated code intact.

246

This checks only if the plugin name starts with given string which is insufficient for proper search.

Using QString::contains() fits the criteria of "search" much more.

Plus Always use {} for commands after the conditions.

src/lib/preferences/pluginsmanager.h
47

In headers methods are sometimes divided by blank lines to indicate that they do different kind of job than the previous "group" of methods, it is good to keep those blanks and find a better place for the new entry (this is sometimes a challenge but it is worth it because it makes code more readable (at least for me))

SGOrava requested changes to this revision.Mar 3 2020, 5:43 PM
This revision now requires changes to proceed.Mar 3 2020, 5:43 PM

Fixed due to issues

ognarb added a subscriber: ognarb.Mar 19 2020, 10:32 PM

To improve the qualitity of the git history, it is recommanded to have a title that explain that it does (for example Add filter to Preferences > Extensions) and add BUG: 408312 in the summary so that the bug report is automatically closed when this diff is merged.

malibushko edited the summary of this revision. (Show Details)Mar 20 2020, 12:04 AM

To improve the qualitity of the git history, it is recommanded to have a title that explain that it does (for example Add filter to Preferences > Extensions) and add BUG: 408312 in the summary so that the bug report is automatically closed when this diff is merged.

Sorry I am new to this site, how to edit the summary?

In "edit revision" in the sidebar in the right.

malibushko edited the summary of this revision. (Show Details)Mar 20 2020, 11:23 AM