summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit.h
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-12-16 12:14:12 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-12-16 12:23:36 (GMT)
commit0568fb9f428a84a344baaa5c53395db4b99f082c (patch)
tree4437c9e86e5cd9c903f9766c96076efdd5ee92f2 /src/gui/widgets/qlineedit.h
parente1706eab16a4cd7f64665249717cc293d3a1ce93 (diff)
downloadQt-0568fb9f428a84a344baaa5c53395db4b99f082c.zip
Qt-0568fb9f428a84a344baaa5c53395db4b99f082c.tar.gz
Qt-0568fb9f428a84a344baaa5c53395db4b99f082c.tar.bz2
Text cursor is not shown properly in line edits on Mac OS X.
The mac stlye disables the blinking cursor when there is a selection in the line edit. The cursor is not shown back when this selection is removed (either by mouse or key press events). This patch watches the selection changed signal from the line control and updates the cursor status accordingly. Task-number: QTBUG-6378 Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui/widgets/qlineedit.h')
-rw-r--r--src/gui/widgets/qlineedit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit.h b/src/gui/widgets/qlineedit.h
index 594e488..3f159f6 100644
--- a/src/gui/widgets/qlineedit.h
+++ b/src/gui/widgets/qlineedit.h
@@ -288,6 +288,7 @@ private:
#ifdef QT_KEYPAD_NAVIGATION
Q_PRIVATE_SLOT(d_func(), void _q_editFocusChange(bool))
#endif
+ Q_PRIVATE_SLOT(d_func(), void _q_selectionChanged())
};
#endif // QT_NO_LINEEDIT