summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h
index 95f27f17..0d94aaf6 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -37,6 +37,8 @@
//Qt Includes
#include <QtCore/QTime>
+#include <QLabel>
+#include <QToolTip>
// Forward Declarations
class WebPage;
@@ -100,6 +102,11 @@ private Q_SLOTS:
void stopScrolling();
void changeWindowIcon();
+ void accessKeyShortcut();
+ void hideAccessKeys();
+
+ void loadStarted();
+
Q_SIGNALS:
void loadUrl(const KUrl &, const Rekonq::OpenType &);
void zoomChanged(int);
@@ -107,6 +114,11 @@ Q_SIGNALS:
void openNextInHistory();
private:
+ bool checkForAccessKey(QKeyEvent *event);
+ void showAccessKeys();
+ void makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element);
+
+private:
QPoint m_mousePos;
QPoint m_clickPos;
@@ -125,6 +137,11 @@ private:
bool m_smoothScrolling;
int m_dy;
int m_smoothScrollSteps;
+
+ // Access Keys
+ QList<QLabel*> m_accessKeyLabels;
+ QHash<QChar, QWebElement> m_accessKeyNodes;
+ bool m_accessKeysPressed;
};
#endif