summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/webview.h b/src/webview.h
index d3f58f2e..03ceb739 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -37,24 +37,13 @@
// Forward Declarations
class WebPage;
-class QTimer;
class WebView : public QWebView
{
Q_OBJECT
- Q_ENUMS(ScrollDirection)
public:
- enum ScrollDirection
- {
- NoScroll = 0,
- Up = 2,
- Down = 4,
- Left = 6,
- Right = 16
- };
-
explicit WebView(QWidget *parent = 0);
~WebView();
@@ -62,7 +51,8 @@ public:
KUrl url() const;
QString lastStatusBarText() const;
int progress();
-
+ QPoint mousePos();
+
protected:
void contextMenuEvent(QContextMenuEvent *event);
void mousePressEvent(QMouseEvent *event);
@@ -82,18 +72,12 @@ private slots:
void openLinkInNewWindow();
void openLinkInNewTab();
- void startScrollAnimation(ScrollDirection direction);
- void stopScrollAnimation();
- void scrollFrameChanged();
-
private:
WebPage *m_page;
int m_progress;
QString m_statusBarText;
- QTimer *m_scrollTimer;
- int m_scrollDirection;
- int m_scrollSpeedVertical;
- int m_scrollSpeedHorizontal;
+
+ QPoint m_mousePos;
};
#endif