equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
508 o.length = m_selend - m_selstart; |
508 o.length = m_selend - m_selstart; |
509 o.format.setBackground(m_palette.brush(QPalette::Highlight)); |
509 o.format.setBackground(m_palette.brush(QPalette::Highlight)); |
510 o.format.setForeground(m_palette.brush(QPalette::HighlightedText)); |
510 o.format.setForeground(m_palette.brush(QPalette::HighlightedText)); |
511 } else { |
511 } else { |
512 // mask selection |
512 // mask selection |
513 o.start = m_cursor; |
513 if(!m_blinkPeriod || m_blinkStatus){ |
514 o.length = 1; |
514 o.start = m_cursor; |
515 o.format.setBackground(m_palette.brush(QPalette::Text)); |
515 o.length = 1; |
516 o.format.setForeground(m_palette.brush(QPalette::Window)); |
516 o.format.setBackground(m_palette.brush(QPalette::Text)); |
|
517 o.format.setForeground(m_palette.brush(QPalette::Window)); |
|
518 } |
517 } |
519 } |
518 selections.append(o); |
520 selections.append(o); |
519 } |
521 } |
520 |
522 |
521 if (flags & DrawText) |
523 if (flags & DrawText) |