summaryrefslogtreecommitdiff
path: root/src/webwindow/webwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-10 16:22:54 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit0e0701dc30d2037359e628a3dd277a4da05b95fd (patch)
tree4ac8c08d97708ea1d1b07621f4fec1c82287888d /src/webwindow/webwindow.cpp
parentClean up remove tab window mechanism (diff)
downloadrekonq-0e0701dc30d2037359e628a3dd277a4da05b95fd.tar.xz
FindBar. Rewamped and restored
Diffstat (limited to 'src/webwindow/webwindow.cpp')
-rw-r--r--src/webwindow/webwindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 87006bf8..0af79cb6 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -39,6 +39,7 @@
#include "webtab.h"
#include "bookmarkstoolbar.h"
+#include "findbar.h"
#include "rekonqfactory.h"
#include "rekonqmenu.h"
#include "settingsdialog.h"
@@ -72,6 +73,7 @@ WebWindow::WebWindow(QWidget *parent, WebPage *pg)
, _bar(new UrlBar(_tab))
, _mainToolBar(0)
, _bookmarksBar(0)
+ , m_findBar(new FindBar(this))
, m_loadStopReloadAction(0)
, m_rekonqMenu(0)
, m_popup(new QLabel(this))
@@ -101,6 +103,7 @@ WebWindow::WebWindow(QWidget *parent, WebPage *pg)
l->addWidget(_mainToolBar);
l->addWidget(_bookmarksBar);
l->addWidget(_tab);
+ l->addWidget(m_findBar);
l->setContentsMargins(0, 0, 0, 0);
setContentsMargins(0, 0, 0, 0);
@@ -128,6 +131,14 @@ WebWindow::WebWindow(QWidget *parent, WebPage *pg)
}
+WebWindow::~WebWindow()
+{
+ m_hidePopupTimer->stop();
+
+ BookmarkManager::self()->removeBookmarkBar(_bookmarksBar);
+}
+
+
void WebWindow::setupActions()
{
KAction *a;
@@ -178,6 +189,11 @@ void WebWindow::setupActions()
KStandardAction::preferences(this, SLOT(preferences()), actionCollection());
KStandardAction::quit(rApp, SLOT(queryQuit()), actionCollection());
+ // find action
+ a = KStandardAction::find(m_findBar, SLOT(show()), actionCollection());
+ KShortcut findShortcut = KStandardShortcut::find();
+ a->setShortcut(findShortcut);
+
a = KStandardAction::fullScreen(this, SLOT(viewFullScreen(bool)), this, actionCollection());
KShortcut fullScreenShortcut = KStandardShortcut::fullScreen();
fullScreenShortcut.setAlternate(Qt::Key_F11);