┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinfileplacesview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-05-11 20:14:50 +0000
committerPeter Penz <[email protected]>2008-05-11 20:14:50 +0000
commit57e3503e2f7dc2528d7935226d1cd283d8278807 (patch)
treef5b6d8bdbe7402e719391c2595fd43deb5451bfa /src/dolphinfileplacesview.h
parent2ad91b45342ddd49854ae2b31a9c6cada1ad1c4e (diff)
If the middle mouse button is pressed above an item of the places panel, open the URL inside a new tab.
svn path=/trunk/KDE/kdebase/apps/; revision=806606
Diffstat (limited to 'src/dolphinfileplacesview.h')
-rw-r--r--src/dolphinfileplacesview.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphinfileplacesview.h b/src/dolphinfileplacesview.h
index 8bad0fa5f..46d574606 100644
--- a/src/dolphinfileplacesview.h
+++ b/src/dolphinfileplacesview.h
@@ -34,8 +34,18 @@ public:
DolphinFilePlacesView(QWidget* parent);
virtual ~DolphinFilePlacesView();
+signals:
+ void urlChanged(const KUrl& url, Qt::MouseButtons buttons);
+
+protected:
+ virtual void mousePressEvent(QMouseEvent* event);
+
private slots:
void slotUrlsDropped(const KUrl& dest, QDropEvent* event, QWidget* parent);
+ void emitExtendedUrlChangedSignal(const KUrl& url);
+
+private:
+ Qt::MouseButtons m_mouseButtons;
};
#endif // DOLPHINFILEPLACESVIEW_H