Port statusbar to QStatusBar
ClosedPublic

Authored by stikonas on Apr 24 2017, 5:34 PM.

Details

Reviewers
None
Group Reviewers
KDE Games
Commits
R419:a1afecdd80fb: Port statusbar to QStatusBar.
Summary

Fix statusbar QT5 porting notes in Kubrick.

Test Plan

Status bar seems to work now.

Diff Detail

Repository
R419 Kubrick
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
stikonas created this revision.Apr 24 2017, 5:34 PM
schwarzer added inline comments.
src/kubrick.cpp
81

nit-picky: within this code base it seems to be common to have a space before the ().

stikonas updated this revision to Diff 13757.Apr 24 2017, 5:42 PM

Yeah, I started fixing these spaces after I done the patch but it seems I missed one. Thanks.

Thanks, looks good to me.
Just curious. Is there (dis)advantages of using the QLabel as pointer vs. value here? I see is used as pointer in other games and used it like that as well.

But that's just curiosity, not a show-stopper for me.

I don't know of any advantage/disadvantage... I can convert it to pointers if you want. Just an example I had was with objects and the code is one line shorter...

stikonas updated this revision to Diff 13763.Apr 24 2017, 7:13 PM
stikonas retitled this revision from Fix statusbar QT5 porting notes in Kubrick to Port statusbar to QStatusBar.
This revision was automatically updated to reflect the committed changes.

Accepted, but for future accounting please wait a bit for an official "Approval".

I don't know of any advantage/disadvantage... I can convert it to pointers if you want. Just an example I had was with objects and the code is one line shorter...

Nah, as I said, it was just curiosity. :)