2010-07-04 12:49 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/hbqt_hbqplaintextedit.cpp
    ! Fixed: one more glitch in selected text background color 
             off by few pixels verically - now the bottom line.
This commit is contained in:
Pritpal Bedi
2010-07-04 19:52:36 +00:00
parent 1452e2d39a
commit 77cb828eab
2 changed files with 6 additions and 1 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-07-04 12:49 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
! Fixed: one more glitch in selected text background color
off by few pixels verically - now the bottom line.
2010-07-04 12:20 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
! Fixed: glitch in selected text background color off by few pixels.

View File

@@ -1619,7 +1619,7 @@ void HBQPlainTextEdit::hbPaintSelection( QPaintEvent * event )
int fontWidth = fontMetrics().averageCharWidth();
int top = ( ( rb <= t ) ? 0 : ( ( rb - t ) * fontHeight ) ) + ttop;
int btm = ( ( re - t + 1 ) * fontHeight ) - top;
int btm = ( ( re - t + 1 ) * fontHeight ) - top + ttop;
btm = btm > viewport()->height() ? viewport()->height() : btm;
QBrush br( m_selectionColor );