compile without deprecated methods
Details
Details
autotest ok
Diff Detail
Diff Detail
- Repository
- R276 KItemViews
- Branch
- arcpatch-D19431
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 11873 Build 11891: arc lint + arc unit
tests/kwidgetitemdelegatetest.cpp | ||
---|---|---|
254 ↗ | (On Diff #52861) | I think the whole point of the name horizontalAdvance() is that characters can actually be drawn outside of that width. I guess boundingRect().width() is a better port for width() in general. Heh actually I just read the documentation for width and it agrees with that. So yes this is a "same behaviour" port, but the whole point of the renaming is to make us realize these things. Sometimes horizontalAdvance is correct (like in kwordwrap.cpp, where they get added together), sometimes boundingRect is what we need, like here when it's to resize something and make sure all the pixels fit. |