diff options
author | Mary Wu <mawu@blackberry.com> | 2013-10-28 10:38:44 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-29 16:26:57 +0100 |
commit | eabac4c9ca887b86bcebbfd2d2afd77ed8cc1a6a (patch) | |
tree | 5afd1a97d17a39d12bfd5767ff357c6fb981b371 /lib/quick | |
parent | c3015f1f9502e3aa18385d09d426d74a6a39d906 (diff) |
Implement popup dialog
This is used to show like date time picker whose document
content was generated in webkit engine.
Change-Id: I900a6ae5f61646d2ef8497dccc114f7cb5882349
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'lib/quick')
-rw-r--r-- | lib/quick/render_widget_host_view_qt_delegate_quick.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/quick/render_widget_host_view_qt_delegate_quick.h b/lib/quick/render_widget_host_view_qt_delegate_quick.h index f60395802..c9f688958 100644 --- a/lib/quick/render_widget_host_view_qt_delegate_quick.h +++ b/lib/quick/render_widget_host_view_qt_delegate_quick.h @@ -69,6 +69,15 @@ public: this->setParentItem(viewPrivate->q_func()); } + virtual void initAsPopup(const QRect& rect) + { + this->setX(rect.x()); + this->setY(rect.y()); + this->setWidth(rect.width()); + this->setHeight(rect.height()); + this->setVisible(true); + } + virtual QRectF screenRect() const { QPointF pos = this->mapToScene(QPointF(0,0)); |