Simplifies the code in the paintEvent related to the
placement of the colored arcs.
Details
Details
- Reviewers
aacid - Commits
- R324:7476aa722d80: Simplify code in the paintEvent
Run blinken, verified that the arcs are in the correct place
Diff Detail
Diff Detail
- Repository
- R324 Blinken
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I'm not really sold out that this is simpler, the array introduces a bit of a disconnect between the coordinates and the button color.
Would you do the same but leaving the coords in the drawPixmap line?
src/blinken.cpp | ||
---|---|---|
118 | The spacing of all the new lines is wonky, use tabs |
Comment Actions
Cool looks defenitely easier to understand, please remove the unneded include and commit :)
src/blinken.cpp | ||
---|---|---|
12 | I guess we don't need this now. |