summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-11-19 01:32:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-11-19 01:32:04 +0100
commitfe21365ffafb922a6b24959f3d1096e4c6171427 (patch)
tree7380e1486a65ab57e39a663442876ff1912715d3 /src/findbar.cpp
parentAPI clean up (diff)
downloadrekonq-fe21365ffafb922a6b24959f3d1096e4c6171427.tar.xz
Print && Find actions for the parts :)
- handle print & find with different signals in mainwindow - show right tab title (moving titleChanged signal from view to tab)
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 3f7825da..158849f9 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -31,6 +31,8 @@
// Local Includes
#include "mainwindow.h"
+#include "webtab.h"
+#include "webpage.h"
// KDE Includes
#include <KApplication>
@@ -154,6 +156,13 @@ bool FindBar::highlightAllState() const
void FindBar::setVisible(bool visible)
{
+ if (visible && m_mainWindow->currentTab()->page()->isOnRekonqPage() && m_mainWindow->currentTab()->part() != 0)
+ {
+ // findNext is the slot containing part integration code
+ m_mainWindow->findNext();
+ return;
+ }
+
QWidget::setVisible(visible);
if (visible)