Don't create pixmaps for loglevel icons
ClosedPublic

Authored by nicolasfella on Jan 1 2020, 7:06 PM.

Details

Summary

We can pass QIcon in all places. Depends on D26347 to be able to see any icons

Test Plan

Still have icons on the left side of the log list

Diff Detail

Repository
R351 KSystemLog
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella requested review of this revision.Jan 1 2020, 7:06 PM
nicolasfella created this revision.
  • Drop iconName method
  • Drop unused iconName member
apol added a subscriber: apol.Jan 1 2020, 11:38 PM
apol added inline comments.
src/detailDialog.cpp
79

Isn't it weird that setPixmap takes a QString?

src/modes/xsession/xsessionItemBuilder.h
58

The QIcon() constructor isn't necessary.

  • Address comments
nicolasfella marked 2 inline comments as done.Jan 1 2020, 11:53 PM
nicolasfella added inline comments.
src/detailDialog.cpp
79

Good catch, that would have been a regression

apol added inline comments.Jan 1 2020, 11:54 PM
src/modes/base/logLevelFileList.cpp
123

QIcon()

nicolasfella marked an inline comment as done.
  • Comment
nicolasfella marked an inline comment as done.Jan 1 2020, 11:56 PM
mart accepted this revision.Apr 20 2020, 11:18 AM
This revision is now accepted and ready to land.Apr 20 2020, 11:18 AM
anthonyfieroni added inline comments.
src/loggerDialog.cpp
41

Why not QIcon here as well?

nicolasfella added inline comments.Apr 20 2020, 8:21 PM
src/loggerDialog.cpp
41

Good catch, I will investigate in a future patch

This revision was automatically updated to reflect the committed changes.