Apparantly select(..) on QItemSelectionModel doesn't update that.
Also skip accessing the currentIndex through the selectionModel. The
select single & clear and select are already also coming from the
selection modes set on the list view.
This ensures signing can work with the preselected (last used / only)
key.
After updating to plasma6, the kcmshell5 changed name to kcmshell6, which caused okular's popup configure menus fail to appear.
This single commit should fix the issue.
In qt6, QRect::normalized changed it's meaning and it now has a 'span'
that preserves the old meaning.
Use the old span to get the old version of normalized so we can match on
the corners once again.
see https://codereview.qt-project.org/c/qt/qtbase/+/309932 for details.
BUG: 482249
Since the last rendered pixmap is usually reused, its device pixel ratio
can end up different from the `devicePixelRatioF()` of the widget which
is used for most size calculations which leads to an area that might be
unpainted causing visual artifacts.
BUG: 479141
After trying to measure the effect of switching TinyTextEntity from a
custom SBO string type to just QString and getting a barely measurable
gain, TinyTextEntity kind of looked like TextEntity, so merge those two.
Also reduce the amount of new/deletes around TextEntities
Implement a string pool for some tiny strings, and various memory optimizations
There is a surprising api change in KSelectAction that has renamed
triggered, but a base class is still having a different triggered, so
code still compiles.
Rename the signal to the new version
BUG: 479108
We now definitely has std::as_const available and Qt has started nagging
about converting to std::as_const.
Implementation is the same for both functions, and qAsConst was a
stop-gap measure until std::as_const was sufficiently available.