Move focus to view when closing the find bar with the [x] button

BUGS: 314251
REVIEW: 120307
FIXED-IN: 4.14.2
remotes/origin/KDE/4.14
Nidhi Jain 12 years ago committed by Albert Astals Cid
parent 3588634833
commit f62153231b
  1. 1
      part.cpp
  2. 1
      ui/findbar.cpp
  3. 1
      ui/findbar.h

@ -473,6 +473,7 @@ m_cliPresentation(false), m_cliPrint(false), m_embedMode(detectEmbedMode(parentW
m_pageNumberTool = new MiniBar( 0, m_miniBarLogic );
connect( m_findBar, SIGNAL(forwardKeyPressEvent(QKeyEvent*)), m_pageView, SLOT(externalKeyPressEvent(QKeyEvent*)));
connect( m_findBar, SIGNAL(onCloseButtonPressed()), m_pageView, SLOT(setFocus()));
connect( m_miniBar, SIGNAL(forwardKeyPressEvent(QKeyEvent*)), m_pageView, SLOT(externalKeyPressEvent(QKeyEvent*)));
connect( m_pageView, SIGNAL(escPressed()), m_findBar, SLOT(resetSearch()) );
connect( m_pageNumberTool, SIGNAL(forwardKeyPressEvent(QKeyEvent*)), m_pageView, SLOT(externalKeyPressEvent(QKeyEvent*)));

@ -179,6 +179,7 @@ void FindBar::closeAndStopSearch()
{
m_search->lineEdit()->stopSearch();
}
emit onCloseButtonPressed();
close();
}

@ -36,6 +36,7 @@ class FindBar
signals:
void forwardKeyPressEvent( QKeyEvent* );
void onCloseButtonPressed();
public slots:
void findNext();

Loading…
Cancel
Save