Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Libraries
Commits
cc0c1afd
Commit
cc0c1afd
authored
Jul 09, 2011
by
Andrea Iacovitti
Browse files
Fix regression about input text clearButton stopping to work on khtml forms
BUG: 246513
parent
1bd0f699
Changes
1
Hide whitespace changes
Inline
Side-by-side
kdeui/widgets/klineedit.cpp
View file @
cc0c1afd
...
...
@@ -1116,7 +1116,7 @@ void KLineEdit::mousePressEvent( QMouseEvent* e )
if
(
(
e
->
button
()
==
Qt
::
LeftButton
||
e
->
button
()
==
Qt
::
MidButton
)
&&
d
->
clearButton
)
{
d
->
clickInClear
=
d
->
clearButton
==
childAt
(
e
->
pos
()
);
d
->
clickInClear
=
(
d
->
clearButton
==
childAt
(
e
->
pos
()
)
||
d
->
clearButton
->
underMouse
()
);
if
(
d
->
clickInClear
)
{
d
->
possibleTripleClick
=
false
;
...
...
@@ -1145,7 +1145,7 @@ void KLineEdit::mousePressEvent( QMouseEvent* e )
void
KLineEdit
::
mouseReleaseEvent
(
QMouseEvent
*
e
)
{
if
(
d
->
clickInClear
)
{
if
(
d
->
clearButton
==
childAt
(
e
->
pos
()
)
)
{
if
(
d
->
clearButton
==
childAt
(
e
->
pos
()
)
||
d
->
clearButton
->
underMouse
(
)
)
{
QString
newText
;
if
(
e
->
button
()
==
Qt
::
MidButton
)
{
newText
=
QApplication
::
clipboard
()
->
text
(
QClipboard
::
Selection
);
...
...
Write
Preview
Supports
Markdown
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