summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-11 14:34:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-11 14:34:42 +0100
commit72cf5c1727345cca277b36702a59c58b9be5ef58 (patch)
treeef49ebc865482c6ef7ecf507d8d740cd41e96fa4 /src/webview.h
parentctrl + click open new tab AND select (diff)
downloadrekonq-72cf5c1727345cca277b36702a59c58b9be5ef58.tar.xz
( SHIFT + ) CTRL + TAB switching. Finally!!
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h
index 62d4f3a5..ae5230ce 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -82,12 +82,23 @@ public:
QString lastStatusBarText() const;
inline int progress() const { return m_progress; }
+signals:
+ // switching tabs
+ void ctrlTabPressed();
+ void shiftCtrlTabPressed();
+
protected:
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void contextMenuEvent(QContextMenuEvent *event);
void wheelEvent(QWheelEvent *event);
+ /**
+ * FIlters (SHIFT + ) CTRL + TAB events and emit (shift)ctrlTabPressed()
+ * to make switch tab
+ */
+ void keyPressEvent(QKeyEvent *event);
+
private slots:
void setProgress(int progress);
void loadFinished();