Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
f311412a
Commit
f311412a
authored
Mar 08, 2022
by
Laurent Montel
Browse files
Disable DiacriticAct when regularexpression is checked
parent
22073753
Pipeline
#146946
passed with stages
in 7 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/commonwidget/textfindreplacewidget.cpp
View file @
f311412a
...
...
@@ -113,13 +113,19 @@ TextFindWidget::TextFindWidget(QWidget *parent)
connect
(
mCaseSensitiveAct
,
&
QAction
::
toggled
,
this
,
&
TextFindWidget
::
updateSearchOptions
);
connect
(
mWholeWordAct
,
&
QAction
::
toggled
,
this
,
&
TextFindWidget
::
updateSearchOptions
);
connect
(
mRespectDiacriticAct
,
&
QAction
::
toggled
,
this
,
&
TextFindWidget
::
updateSearchOptions
);
connect
(
mRegularExpressionAct
,
&
QAction
::
toggled
,
this
,
&
TextFindWidget
::
updateSearchOptions
);
connect
(
mRegularExpressionAct
,
&
QAction
::
toggled
,
this
,
&
TextFindWidget
::
slotRegularExpressionChanged
);
connect
(
mSearch
,
&
QLineEdit
::
textChanged
,
this
,
&
TextFindWidget
::
slotAutoSearch
);
connect
(
mSearch
,
&
QLineEdit
::
returnPressed
,
this
,
&
TextFindWidget
::
findNext
);
}
TextFindWidget
::~
TextFindWidget
()
=
default
;
void
TextFindWidget
::
slotRegularExpressionChanged
(
bool
b
)
{
mRespectDiacriticAct
->
setEnabled
(
!
b
);
Q_EMIT
updateSearchOptions
();
}
void
TextFindWidget
::
setFoundMatch
(
bool
match
)
{
#ifndef QT_NO_STYLE_STYLESHEET
...
...
src/texteditor/commonwidget/textfindreplacewidget.h
View file @
f311412a
...
...
@@ -46,6 +46,7 @@ Q_SIGNALS:
void
searchStringEmpty
(
bool
);
private:
void
slotRegularExpressionChanged
(
bool
b
);
QLineEdit
*
const
mSearch
;
QAction
*
mCaseSensitiveAct
=
nullptr
;
QAction
*
mWholeWordAct
=
nullptr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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