diff options
author | axis <qt-info@nokia.com> | 2009-05-11 11:49:10 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-05-11 12:52:32 (GMT) |
commit | f7df92920b8697238439cede8b60bf2ec047c81d (patch) | |
tree | a358b26fdcbb8948a13d090fb934aa64e9cb3522 | |
parent | 58927cf98f94a9b300845cb631ebace303a6050f (diff) | |
download | Qt-f7df92920b8697238439cede8b60bf2ec047c81d.zip Qt-f7df92920b8697238439cede8b60bf2ec047c81d.tar.gz Qt-f7df92920b8697238439cede8b60bf2ec047c81d.tar.bz2 |
Make QLineEdit care about autoSipEnabled.
If the property is disabled, it will not ask for an input panel.
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index fa337af..116d000 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -1774,8 +1774,8 @@ void QLineEdit::mouseReleaseEvent(QMouseEvent* e) } #endif - if (e->button() == Qt::LeftButton && (!d->clickCausedFocus - || QApplication::autoSipOnMouseFocus())) { + if (e->button() == Qt::LeftButton && qApp->autoSipEnabled() + && (!d->clickCausedFocus || qApp->autoSipOnMouseFocus())) { QEvent event(QEvent::RequestSoftwareInputPanel); QApplication::sendEvent(this, &event); } |