summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-01-13 17:29:15 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-01-14 11:18:01 (GMT)
commita299057a351b0aff2c961e920839451b67e50f4e (patch)
tree4bf62da175b4b2750933c97901627ea89722ee78 /src/gui/widgets/qlinecontrol.cpp
parentf9a6458f4abf8327354d227b3dd87bbab50d44e9 (diff)
downloadQt-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.cpp10
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);
}