using the same trick as elsewhere, set the currentIndex
and move the view to currentIndex right at startup
the only way to be sure is onContentHeightChanged
as there are no signals for when "the view has been
populated and settled up"
Details
the view is at the right state since the first frame shown,
no more jumping around effect
Diff Detail
- Repository
- R108 KWin
- Branch
- phab/selectIndex
- Lint
No Linters Available - Unit
No Unit Test Coverage
The QML hack is fine, but it seems like you've written the C++ part without reading any of the existing code.
kcmkwin/kwindecoration/kcm.cpp | ||
---|---|---|
317–318 | We're doing the exact same logic here. Duplicating it without deleting this is definitely wrong. It looks like this should work as we've loaded the model and the model is populated at startup. Or at an absolute minimum delete this. |
kcmkwin/kwindecoration/kcm.cpp | ||
---|---|---|
317–318 | can be safely deleted. |
kcmkwin/kwindecoration/kcm.cpp | ||
---|---|---|
102 | We can't do this. You've just restored the crash when hitting back. |
kcmkwin/kwindecoration/kcm.cpp | ||
---|---|---|
102 | aww, right, this one is a qwidget, |