diff --git a/ui/searchlineedit.cpp b/ui/searchlineedit.cpp --- a/ui/searchlineedit.cpp +++ b/ui/searchlineedit.cpp @@ -241,6 +241,17 @@ { emit searchStarted(); m_searchRunning = true; + + if (thistext.isRightToLeft()) + { + QString rtltext; + foreach (QChar c, thistext) + { + rtltext.push_front(c); + } + thistext = rtltext; + } + m_document->searchText( m_id, thistext, m_fromStart, m_caseSensitivity, m_searchType, m_moveViewport, m_color ); }