diff options
author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2012-11-14 10:52:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-14 14:18:31 +0100 |
commit | 9346cb955230b3fbca8062a2fe8c912713011ce4 (patch) | |
tree | 01acf41bf9d1a60d553c515c34227e31a39e50df /src/widgets/widgets/qwidgetlinecontrol_p.h | |
parent | 85ff27d9ec485e87936c60c3e49b2e26d0b3946a (diff) |
Widgets: Stop cursor blink timer when QLineEdit is read-only
This prevents unnecessary updates, since the cursor is not visible.
Change-Id: Iec54ed338a0cb526a03cd611de4d823e26f3d804
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src/widgets/widgets/qwidgetlinecontrol_p.h')
-rw-r--r-- | src/widgets/widgets/qwidgetlinecontrol_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets/widgets/qwidgetlinecontrol_p.h b/src/widgets/widgets/qwidgetlinecontrol_p.h index 185bc117b6..d88d75c651 100644 --- a/src/widgets/widgets/qwidgetlinecontrol_p.h +++ b/src/widgets/widgets/qwidgetlinecontrol_p.h @@ -213,7 +213,7 @@ public: } bool isReadOnly() const { return m_readOnly; } - void setReadOnly(bool enable) { m_readOnly = enable; } + void setReadOnly(bool enable); QString text() const { @@ -338,7 +338,6 @@ public: int cursorBlinkPeriod() const { return m_blinkPeriod; } void setCursorBlinkPeriod(int msec); - void resetCursorBlinkTimer(); bool cursorBlinkStatus() const { return m_blinkStatus; } |