diff options
author | root <root@rshg047.dnsready.net> | 2011-07-13 23:12:30 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-13 23:12:30 +0000 |
commit | 29657877f6a02dbba1bd58b417b4ccd211939690 (patch) | |
tree | 0213b621a87e176f90d19cf8e894d1da8fd0d1b6 /extra/kdelibs/fix-lineedit-clear-button.patch | |
parent | 079c689ef9b252fd82dbf9b182ec2517c48f8737 (diff) |
Wed Jul 13 23:12:30 UTC 2011
Diffstat (limited to 'extra/kdelibs/fix-lineedit-clear-button.patch')
-rw-r--r-- | extra/kdelibs/fix-lineedit-clear-button.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/kdelibs/fix-lineedit-clear-button.patch b/extra/kdelibs/fix-lineedit-clear-button.patch new file mode 100644 index 000000000..315892940 --- /dev/null +++ b/extra/kdelibs/fix-lineedit-clear-button.patch @@ -0,0 +1,30 @@ +commit 0b7201c1fe4f12dc7b17abbf19047864d1cca302 +Author: Andrea Iacovitti <aiacovitti@libero.it> +Date: Sat Jul 9 19:51:40 2011 +0200 + + Fix regression about input text clearButton stopping to work on khtml forms + BUG: 246513 + FIXED-IN: 4.7.0 + +diff --git a/kdeui/widgets/klineedit.cpp b/kdeui/widgets/klineedit.cpp +index 7382806..8f1c8a4 100644 +--- a/kdeui/widgets/klineedit.cpp ++++ b/kdeui/widgets/klineedit.cpp +@@ -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 ); |