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:
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user