Qt Declarative (Quick 2)
Go to file
Richard Moe Gustavsen 8e5578d3fc QQuickTableView: override fixup() to preserve contentX/Y at start-up
Flickable::fixup() will be called from Flickable::componentComplete().
fixup() is a virtual function that subclasses can override to e.g
ensure that cells snap to grid etc (which is not yet supported by
TableView). The default implementation will check if the assigned
contentX/Y is within the current content item size, and adjust it
back to 0,0 if not. The problem is that during componentComplete(), the
table has not yet been built. And we don't want Flickable to reset
any assignments to contentX/Y until that has happened. So override the
function and block it from doing any adjustments before the table has
been built.

Change-Id: Id6c5a3b5f053f71bf1854573cd5b9dc3ecc9f246
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2018-09-11 12:37:36 +00:00
config.tests/d3d12
dist
examples QQuickTableView: override fixup() to preserve contentX/Y at start-up 2018-09-11 12:37:36 +00:00
features
src QQuickTableView: override fixup() to preserve contentX/Y at start-up 2018-09-11 12:37:36 +00:00
tests QQuickTableView: override fixup() to preserve contentX/Y at start-up 2018-09-11 12:37:36 +00:00
tools qmlplugindump: Remove path for -dependencies argument 2018-09-06 12:20:42 +00:00
.gitattributes
.gitignore
.gitmodules
.qmake.conf
.tag
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.LGPL3
configure.json
qtdeclarative.doxy
qtdeclarative.pro
sync.profile