Drop compatibility code for TQPalette

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/41/head
Michele Calgaro 1 year ago
parent 14f8c96549
commit 4ddb9e62ad
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1816,8 +1816,8 @@ CollectionDB::createDragPixmap( const KURL::List &urls, TQString textOverRide )
TQPainter p;
p.begin( &pmtext );
p.fillRect( 0, 0, pixmapW, fontH, TQBrush( TQt::black ) ); // border
p.fillRect( 1, 1, pixmapW-margin, fontH-margin, palette.brush( TQPalette::Normal, TQColorGroup::Background ) );
p.setBrush( palette.color( TQPalette::Normal, TQColorGroup::Text ) );
p.fillRect( 1, 1, pixmapW-margin, fontH-margin, palette.brush( TQPalette::Active, TQColorGroup::Background ) );
p.setBrush( palette.color( TQPalette::Active, TQColorGroup::Text ) );
p.setFont( font );
p.drawText( margin, fm.ascent() + 1, text );
p.end();

Loading…
Cancel
Save