Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt: Improve ComponentBox #534

Merged
merged 3 commits into from
Oct 18, 2023
Merged

qt: Improve ComponentBox #534

merged 3 commits into from
Oct 18, 2023

Conversation

aleixpol
Copy link
Collaborator

@aleixpol aleixpol commented Oct 4, 2023

  • Adds iterators so that we don't need to create a full QList every time that we get a result. We can iterate it little by little and only keep in memory what we need.
  • Adds operator+= and erase() so the ComponentBox can be operated on.

@aleixpol
Copy link
Collaborator Author

aleixpol commented Oct 4, 2023

Discover's counterpart: https://invent.kde.org/plasma/discover/-/merge_requests/650

qt/component-box.cpp Outdated Show resolved Hide resolved
qt/component-box.cpp Show resolved Hide resolved
qt/component-box.h Outdated Show resolved Hide resolved
@aleixpol aleixpol force-pushed the work/apol/operate-componentbox branch 3 times, most recently from 37d7bf1 to 1fbefa3 Compare October 5, 2023 00:09
qt/component-box.cpp Outdated Show resolved Hide resolved
@aleixpol aleixpol force-pushed the work/apol/operate-componentbox branch 2 times, most recently from e910032 to fbd1895 Compare October 6, 2023 16:18
@ximion
Copy link
Owner

ximion commented Oct 7, 2023

Can you rebase and use the existing new as_component_box_remove_at function? :)

@ximion
Copy link
Owner

ximion commented Oct 14, 2023

Ping ;-)

Allows us to not create all the Component objects at once with toList.
@aleixpol aleixpol force-pushed the work/apol/operate-componentbox branch from fbd1895 to ffde808 Compare October 18, 2023 00:00
qt/component-box.cpp Show resolved Hide resolved
qt/component-box.cpp Outdated Show resolved Hide resolved
@aleixpol aleixpol force-pushed the work/apol/operate-componentbox branch from ffde808 to b86be27 Compare October 18, 2023 01:03
@ximion ximion removed the incomplete label Oct 18, 2023
@ximion
Copy link
Owner

ximion commented Oct 18, 2023

This looks good now, thank you for the patch!

@ximion ximion merged commit f7db148 into main Oct 18, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants