summaryrefslogtreecommitdiff
path: root/src/webwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-01 12:24:32 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commite473d62586b7d31c281d5fa15a7cd98f9024190a (patch)
treef24f6f1582e9ade2786ce9b3a1c41781a1d8a465 /src/webwindow
parentFix use of webpage (diff)
downloadrekonq-e473d62586b7d31c281d5fa15a7cd98f9024190a.tar.xz
Remove a lot of application calls by refactoring code
Diffstat (limited to 'src/webwindow')
-rw-r--r--src/webwindow/webwindow.cpp12
-rw-r--r--src/webwindow/webwindow.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index cdd350b3..c0cd9c41 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -141,6 +141,18 @@ QIcon WebWindow::icon() const
}
+KLineEdit *WebWindow::urlBar()
+{
+ return _edit;
+}
+
+
+WebTab *WebWindow::view()
+{
+ return _tab;
+}
+
+
QPixmap WebWindow::tabPreview(int width, int height)
{
return WebSnap::renderPagePreview(*page(), width, height);
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index 64af055b..9551000b 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -64,6 +64,9 @@ public:
KUrl url() const;
QString title() const;
QIcon icon() const;
+
+ KLineEdit *urlBar();
+ WebTab *view();
QPixmap tabPreview(int width, int height);