diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2015-04-15 12:06:49 +0200 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2015-04-15 10:50:41 +0000 |
commit | 7e86a65cb03c3a35f1c8fb3e16a55193e42930ab (patch) | |
tree | 4cc0bfc6c7925107896bd78ead3cac87a119a713 /src/controls/plugin.cpp | |
parent | ded73ee2ae8aa333894ab11ce2297e755ec03f3e (diff) | |
download | qtquickcontrols-7e86a65cb03c3a35f1c8fb3e16a55193e42930ab.tar.gz |
Add internal ScenePosListener
Makes it possible to implement floating text selection handle popups
that retain correct position whilst the scene position of the attached
text input control changes. The text input may be eg. in a Flickable
and thus does not receive geometry change notifications since its own
position in relation to the direct parent does not change.
Task-number: QTBUG-42538
Change-Id: I63cb15ddb1daa7d39cbe95d6421b171cd1c01596
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/plugin.cpp')
-rw-r--r-- | src/controls/plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp index a402df68..7e98509d 100644 --- a/src/controls/plugin.cpp +++ b/src/controls/plugin.cpp @@ -55,6 +55,7 @@ #include "Private/qquickabstractstyle_p.h" #include "Private/qquickcontrolsprivate_p.h" #include "Private/qquicktreemodeladaptor_p.h" +#include "Private/qquicksceneposlistener_p.h" #ifdef QT_WIDGETS_LIB #include <QtQuick/qquickimageprovider.h> @@ -154,6 +155,7 @@ void QtQuickControlsPlugin::initializeEngine(QQmlEngine *engine, const char *uri qmlRegisterType<QQuickControlsPrivateAttached>(); qmlRegisterType<QQuickTreeModelAdaptor>(private_uri, 1, 0, "TreeModelAdaptor"); + qmlRegisterType<QQuickScenePosListener>(private_uri, 1, 0, "ScenePosListener"); qmlRegisterType<QQuickMenu>(private_uri, 1, 0, "MenuPrivate"); qmlRegisterType<QQuickMenuBar>(private_uri, 1, 0, "MenuBarPrivate"); |