diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-02-08 17:31:44 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-03-15 16:52:27 +0000 |
commit | 243a2fef90dc3ac846a36738bfe97efba3050dc9 (patch) | |
tree | 9a68163527c2795f4c3ef0b11db10cc1a19f6915 /src/webengine/ui_delegates_manager.cpp | |
parent | 6b35497375c07c49cca7317a4452acc6adc7a1cd (diff) |
Adaptations to form validation
Form validations messages has moved entirely to being done by Blink.
Change-Id: I6742c111fc59f0baba75b8b37f5d0ec9ae2fb920
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/webengine/ui_delegates_manager.cpp')
-rw-r--r-- | src/webengine/ui_delegates_manager.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/webengine/ui_delegates_manager.cpp b/src/webengine/ui_delegates_manager.cpp index 046affbf4..12474a1f1 100644 --- a/src/webengine/ui_delegates_manager.cpp +++ b/src/webengine/ui_delegates_manager.cpp @@ -129,7 +129,6 @@ MenuItemHandler::MenuItemHandler(QObject *parent) UIDelegatesManager::UIDelegatesManager(QQuickWebEngineView *view) : m_view(view) - , m_messageBubbleItem(0) , m_toolTip(nullptr) FOR_EACH_COMPONENT_TYPE(COMPONENT_MEMBER_INIT, NO_SEPARATOR) { @@ -535,39 +534,6 @@ void UIDelegatesManager::showMenu(QObject *menu) QMetaObject::invokeMethod(menu, "popup"); } -void UIDelegatesManager::showMessageBubble(const QRect &anchor, const QString &mainText, const QString &subText) -{ - if (!ensureComponentLoaded(MessageBubble)) - return; - - Q_ASSERT(m_messageBubbleItem.isNull()); - - QQmlContext *context = qmlContext(m_view); - m_messageBubbleItem.reset(qobject_cast<QQuickItem *>(messageBubbleComponent->beginCreate(context))); - m_messageBubbleItem->setParentItem(m_view); - messageBubbleComponent->completeCreate(); - - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("maxWidth")).write(anchor.size().width()); - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("mainText")).write(mainText); - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("subText")).write(subText); - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("x")).write(anchor.x()); - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("y")).write(anchor.y() + anchor.size().height()); -} - -void UIDelegatesManager::hideMessageBubble() -{ - m_messageBubbleItem.reset(); -} - -void UIDelegatesManager::moveMessageBubble(const QRect &anchor) -{ - if (m_messageBubbleItem.isNull()) - return; - - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("x")).write(anchor.x()); - QQmlProperty(m_messageBubbleItem.data(), QStringLiteral("y")).write(anchor.y() + anchor.size().height()); -} - void UIDelegatesManager::showToolTip(const QString &text) { if (!ensureComponentLoaded(ToolTip)) |