summaryrefslogtreecommitdiff
path: root/src/browsermainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-11-13 11:43:05 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-11-13 11:43:05 +0100
commitc6646ccdae1c9b25a44e93c0a31298ec89797934 (patch)
tree1c9cb8bc5c6b6a31664e6ee89e3d5853ac34bba8 /src/browsermainwindow.cpp
parentSome porting, lots of QAction converted, history and bookmarks re-enabled, (diff)
downloadrekonq-c6646ccdae1c9b25a44e93c0a31298ec89797934.tar.xz
New 1st implementation of text search bar.
It is currently not working. Anyway, good starting point..
Diffstat (limited to 'src/browsermainwindow.cpp')
-rw-r--r--src/browsermainwindow.cpp23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/browsermainwindow.cpp b/src/browsermainwindow.cpp
index ef796ff7..81784a62 100644
--- a/src/browsermainwindow.cpp
+++ b/src/browsermainwindow.cpp
@@ -82,10 +82,9 @@ BrowserMainWindow::BrowserMainWindow(QWidget *parent, Qt::WindowFlags flags)
addToolBarBreak();
layout->addWidget(m_tabWidget);
- // Find Widget
-/* m_findWidg = new FindWidget(centralWidget);
- layout->addWidget(m_findWidg);*/
-// m_findWidg->setVisible(false);
+ // Search Bar
+ m_searchBar = new SearchBar(centralWidget);
+ layout->addWidget(m_searchBar);
centralWidget->setLayout(layout);
setCentralWidget(centralWidget);
@@ -269,7 +268,7 @@ void BrowserMainWindow::setupMenu()
editMenu->addSeparator();
- editMenu->addAction( KStandardAction::find(this, SLOT( slotViewtFindWidget() ) , this ) );
+ editMenu->addAction( KStandardAction::find(this, SLOT( slotViewSearchBar() ) , this ) );
editMenu->addAction( KStandardAction::findNext(this, SLOT( slotEditFindNext() ) , this ) );
editMenu->addAction( KStandardAction::findPrev(this, SLOT( slotEditFindPrevious() ) , this ) );
@@ -649,15 +648,6 @@ void BrowserMainWindow::closeEvent(QCloseEvent *event)
}
-void BrowserMainWindow::slotViewFindWidget()
-{
- if ( m_findWidg->isVisible() )
- m_findWidg->setVisible( false );
- else
- m_findWidg->setVisible( true );
-}
-
-
// FIXME: reimplement me A-LA KATE search bar
void BrowserMainWindow::slotEditFind()
{
@@ -679,7 +669,10 @@ bool ok;
m_lastSearch = findWidg->*/
}
-
+void BrowserMainWindow::slotViewSearchBar()
+{
+ m_searchBar->show();
+}
void BrowserMainWindow::slotEditFindNext()
{