summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2011-10-21 17:34:20 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-10-21 17:34:20 +0200
commit2668d6425b3573368150c95c253c653d3362136f (patch)
treee10f0d74c690ffaaf5ddc0e82646f25e23aaefe6 /src/tabbar.h
parentMerge branch 'master' of git://anongit.kde.org/rekonq (diff)
downloadrekonq-2668d6425b3573368150c95c253c653d3362136f.tar.xz
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
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h3
1 files changed, 3 insertions, 0 deletions
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();