diff --git a/src/lib/tabwidget/tabwidget.cpp b/src/lib/tabwidget/tabwidget.cpp index 14a733910..59bdea393 100644 --- a/src/lib/tabwidget/tabwidget.cpp +++ b/src/lib/tabwidget/tabwidget.cpp @@ -65,32 +65,6 @@ void AddTabButton::mouseReleaseEvent(QMouseEvent* event) ToolButton::mouseReleaseEvent(event); } -void AddTabButton::dragEnterEvent(QDragEnterEvent* event) -{ - const QMimeData* mime = event->mimeData(); - - if (mime->hasUrls()) { - event->acceptProposedAction(); - return; - } - - ToolButton::dragEnterEvent(event); -} - -void AddTabButton::dropEvent(QDropEvent* event) -{ - const QMimeData* mime = event->mimeData(); - - if (!mime->hasUrls()) { - ToolButton::dropEvent(event); - return; - } - - foreach (const QUrl &url, mime->urls()) { - m_tabWidget->addView(url, Qz::NT_SelectedNewEmptyTab); - } -} - void MenuTabs::mouseReleaseEvent(QMouseEvent* event) { if (event->button() == Qt::MiddleButton) { diff --git a/src/lib/tabwidget/tabwidget.h b/src/lib/tabwidget/tabwidget.h index 5427d8764..dfcf2bc4a 100644 --- a/src/lib/tabwidget/tabwidget.h +++ b/src/lib/tabwidget/tabwidget.h @@ -44,8 +44,6 @@ public: private: void wheelEvent(QWheelEvent* event); void mouseReleaseEvent(QMouseEvent* event); - void dragEnterEvent(QDragEnterEvent* event); - void dropEvent(QDropEvent* event); TabBar* m_tabBar; TabWidget* m_tabWidget;