summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-12 11:47:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-12 11:47:02 +0200
commit1553bf6ba7614abaf09ef86f36407bc07c309bc8 (patch)
tree554e88556ef9af3041eb9b450e59b1a61a781da7 /src/urlbar/urlbar.h
parentFix UrlFilter Hangs (diff)
downloadrekonq-1553bf6ba7614abaf09ef86f36407bc07c309bc8.tar.xz
Add timer to UrlBar suggestions
This is based on the Cedric's patch about and I changed it to save a bit of work to rekonq to not resolve urls that not will be displayed :)
Diffstat (limited to 'src/urlbar/urlbar.h')
-rw-r--r--src/urlbar/urlbar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h
index b644f84f..cda8a2e1 100644
--- a/src/urlbar/urlbar.h
+++ b/src/urlbar/urlbar.h
@@ -46,6 +46,7 @@ class QLinearGradient;
class QWidget;
class CompletionWidget;
class WebTab;
+class QTimer;
class IconButton : public QToolButton
@@ -97,6 +98,9 @@ private slots:
void loadTyped(const QString &);
void clearRightIcons();
+
+ void detectTypedString(const QString &);
+ void suggest();
protected:
void paintEvent(QPaintEvent *event);
@@ -116,6 +120,8 @@ private:
IconButton *_icon;
IconButtonPointerList _rightIconsList;
+
+ QTimer *_suggestionTimer;
};