From 2668d6425b3573368150c95c253c653d3362136f Mon Sep 17 00:00:00 2001 From: Furkan Uzumcu Date: Fri, 21 Oct 2011 17:34:20 +0200 Subject: Enable url or text drops in the tabbar Dropping urls in the tabbar loads them in new tabs, while dropping text searches it on your default search engine. REVIEW: 102811 REVIEWED-BY: adjam --- src/tabbar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tabbar.h') diff --git a/src/tabbar.h b/src/tabbar.h index b4c816b7..1cb66592 100644 --- a/src/tabbar.h +++ b/src/tabbar.h @@ -88,6 +88,8 @@ protected: virtual void mousePressEvent(QMouseEvent *event); virtual void tabRemoved(int index); + void dropEvent(QDropEvent *event); + void dragEnterEvent(QDragEnterEvent *event); private slots: void cloneTab(); @@ -102,6 +104,7 @@ private slots: void showTabPreview(); void removeAnimation(int index); + bool isURLValid(const QString &url); private: void setupHistoryActions(); -- cgit v1.2.1