diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-01-13 17:29:15 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-01-14 11:18:01 (GMT) |
commit | a299057a351b0aff2c961e920839451b67e50f4e (patch) | |
tree | 4bf62da175b4b2750933c97901627ea89722ee78 /src/gui/widgets/qlinecontrol.cpp | |
parent | f9a6458f4abf8327354d227b3dd87bbab50d44e9 (diff) | |
download | Qt-a299057a351b0aff2c961e920839451b67e50f4e.zip Qt-a299057a351b0aff2c961e920839451b67e50f4e.tar.gz Qt-a299057a351b0aff2c961e920839451b67e50f4e.tar.bz2 |
Make input mask cursor blink
Task-number: QTBUG-7174
Reviewed-by: Leo
Diffstat (limited to 'src/gui/widgets/qlinecontrol.cpp')
-rw-r--r-- | src/gui/widgets/qlinecontrol.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp index 117c550..12b4268 100644 --- a/src/gui/widgets/qlinecontrol.cpp +++ b/src/gui/widgets/qlinecontrol.cpp @@ -510,10 +510,12 @@ void QLineControl::draw(QPainter *painter, const QPoint &offset, const QRect &cl o.format.setForeground(m_palette.brush(QPalette::HighlightedText)); } else { // mask selection - o.start = m_cursor; - o.length = 1; - o.format.setBackground(m_palette.brush(QPalette::Text)); - o.format.setForeground(m_palette.brush(QPalette::Window)); + if(!m_blinkPeriod || m_blinkStatus){ + o.start = m_cursor; + o.length = 1; + o.format.setBackground(m_palette.brush(QPalette::Text)); + o.format.setForeground(m_palette.brush(QPalette::Window)); + } } selections.append(o); } |