mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-05 00:58:46 +00:00
Deprecation fix; returnPressed
This commit is contained in:
parent
e2b9640cd0
commit
222d778c33
|
@ -66,14 +66,14 @@ void SearchLineEdit::setSearchType(Okular::Document::SearchType type)
|
|||
return;
|
||||
}
|
||||
|
||||
disconnect(this, &SearchLineEdit::returnPressed, this, &SearchLineEdit::slotReturnPressed);
|
||||
disconnect(this, &SearchLineEdit::returnKeyPressed, this, &SearchLineEdit::slotReturnPressed);
|
||||
|
||||
m_searchType = type;
|
||||
|
||||
// Only connect Enter for next/prev searches, the rest of searches are document global so
|
||||
// next/prev search does not make sense for them
|
||||
if (m_searchType == Okular::Document::NextMatch || m_searchType == Okular::Document::PreviousMatch) {
|
||||
connect(this, &SearchLineEdit::returnPressed, this, &SearchLineEdit::slotReturnPressed);
|
||||
connect(this, &SearchLineEdit::returnKeyPressed, this, &SearchLineEdit::slotReturnPressed);
|
||||
}
|
||||
|
||||
if (!m_changed) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user