size the page correctly to not have the horizontal
scrollbar when not needed, and make sure the flickable
is not interactive, as flicking is managed by hand
with a mousearea
The situation described here occurs in particular when first increasing
the size of the component considerably, and then reducing it again
(such as switching to and from full screen in some application)
Error discovered in Peruse, but will happen elsewhere as well.
okularplugin target from mobile/components suffers from the same problem as okularpart in https://git.reviewboard.kde.org/r/125741/
But the cause is a bit different now. okularplugin uses settings.cpp generated by KConfig and its header declares Settings class with OKULARCORE_EXPORT. For okularplugin target this macro gets expanded to __declspec(dllimport) and it makes linker to look for Settings class symbols in okularcore.
Fix this by tricking VS that we are building okularcore target.
REVIEW: 125742
when pinching, just scale the item, this scales the texture
with the GPU, avoiding costrly redraws.
redraw at the correct size only when the gesture ends