Stop Map inerfering with Chart drag & drop

The Google Map view uses a Web view which by default
attempts to handle drop events. This interferes with
the adding charts via drag and drop. This patch fixes
that.
This commit is contained in:
Mark Liversedge
2011-07-30 23:16:37 +01:00
parent abd8790458
commit 6d154e4ecd

View File

@@ -46,6 +46,7 @@ GoogleMapControl::GoogleMapControl(MainWindow *mw) : GcWindow(mw), main(mw), ran
view->setContentsMargins(0,0,0,0);
view->page()->view()->setContentsMargins(0,0,0,0);
view->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
view->setAcceptDrops(false);
layout->addWidget(view);
webBridge = new WebBridge(mw, this);