Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f6215323 authored by Nidhi Jain's avatar Nidhi Jain Committed by Albert Astals Cid

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

BUGS: 314251
REVIEW: 120307
FIXED-IN: 4.14.2
parent 35886348
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment