summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-11 11:49:10 (GMT)
committeraxis <qt-info@nokia.com>2009-05-11 12:52:32 (GMT)
commitf7df92920b8697238439cede8b60bf2ec047c81d (patch)
treea358b26fdcbb8948a13d090fb934aa64e9cb3522 /src/gui/widgets
parent58927cf98f94a9b300845cb631ebace303a6050f (diff)
downloadQt-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.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qlineedit.cpp4
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);
}