Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joao Oliveira
Okular
Commits
f6215323
Commit
f6215323
authored
Sep 30, 2014
by
Nidhi Jain
Committed by
Albert Astals Cid
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move focus to view when closing the find bar with the [x] button
BUGS: 314251 REVIEW: 120307 FIXED-IN: 4.14.2
parent
35886348
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
part.cpp
part.cpp
+1
-0
ui/findbar.cpp
ui/findbar.cpp
+1
-0
ui/findbar.h
ui/findbar.h
+1
-0
No files found.
part.cpp
View file @
f6215323
...
...
@@ -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
*
)));
...
...
ui/findbar.cpp
View file @
f6215323
...
...
@@ -179,6 +179,7 @@ void FindBar::closeAndStopSearch()
{
m_search
->
lineEdit
()
->
stopSearch
();
}
emit
onCloseButtonPressed
();
close
();
}
...
...
ui/findbar.h
View file @
f6215323
...
...
@@ -36,6 +36,7 @@ class FindBar
signals:
void
forwardKeyPressEvent
(
QKeyEvent
*
);
void
onCloseButtonPressed
();
public
slots
:
void
findNext
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment