Skip to content

QML-ify the UserModel, use properties rather than setter methods#4710

Merged
claucambra merged 1 commit into
masterfrom
bugfix/qmlify-usermodel
Jul 15, 2022
Merged

QML-ify the UserModel, use properties rather than setter methods#4710
claucambra merged 1 commit into
masterfrom
bugfix/qmlify-usermodel

Conversation

@claucambra

@claucambra claucambra commented Jul 8, 2022

Copy link
Copy Markdown
Collaborator

Make more use of properties over setter methods, move Q_INVOKABLE void methods to slots

Signed-off-by: Claudio Cambra claudio.cambra@gmail.com

@claucambra claucambra self-assigned this Jul 8, 2022
@codecov

codecov Bot commented Jul 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4710 (539ba93) into master (7f40e7e) will increase coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4710      +/-   ##
==========================================
+ Coverage   56.43%   56.55%   +0.12%     
==========================================
  Files         138      138              
  Lines       17070    17070              
==========================================
+ Hits         9633     9654      +21     
+ Misses       7437     7416      -21     
Impacted Files Coverage Δ
src/libsync/discovery.cpp 84.56% <0.00%> (-0.30%) ⬇️
src/libsync/syncengine.cpp 85.74% <0.00%> (+0.54%) ⬆️
src/libsync/vfs/cfapi/cfapiwrapper.cpp 77.34% <0.00%> (+1.92%) ⬆️
src/libsync/vfs/cfapi/vfs_cfapi.cpp 86.46% <0.00%> (+2.62%) ⬆️
src/libsync/vfs/cfapi/hydrationjob.cpp 56.45% <0.00%> (+3.76%) ⬆️

@camilasan camilasan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a really nice improvement :)

@camilasan

Copy link
Copy Markdown
Member

/backport to stable-3.5

Comment thread src/gui/tray/UserLine.qml Outdated
Comment thread src/gui/tray/usermodel.cpp
Comment thread src/gui/tray/usermodel.h Outdated
@claucambra claucambra force-pushed the bugfix/qmlify-usermodel branch 3 times, most recently from 49e4b8e to 5401b85 Compare July 15, 2022 14:06
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@claucambra claucambra force-pushed the bugfix/qmlify-usermodel branch from 5401b85 to 539ba93 Compare July 15, 2022 14:47
@nextcloud-desktop-bot

Copy link
Copy Markdown

AppImage file: Nextcloud-PR-4710-539ba93fd167c63269cc7fc7cb157cd4143e130b-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

4 participants