|
|
|
@ -3100,14 +3100,14 @@ void LipstikStyle::drawControl(ControlElement element,
|
|
|
|
|
|
|
|
|
|
// Draw the pixmap
|
|
|
|
|
if ( pixmap->depth() == 1 )
|
|
|
|
|
p->setBackgroundMode( Qt::OpaqueMode );
|
|
|
|
|
p->setBackgroundMode( TQt::OpaqueMode );
|
|
|
|
|
|
|
|
|
|
int diffw = ( ( r.width() - pixmap->width() ) / 2 )
|
|
|
|
|
+ ( ( r.width() - pixmap->width() ) % 2 );
|
|
|
|
|
p->drawPixmap( r.x()+diffw, r.y()+1, *pixmap );
|
|
|
|
|
|
|
|
|
|
if ( pixmap->depth() == 1 )
|
|
|
|
|
p->setBackgroundMode( Qt::TransparentMode );
|
|
|
|
|
p->setBackgroundMode( TQt::TransparentMode );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -3143,7 +3143,7 @@ void LipstikStyle::drawControl(ControlElement element,
|
|
|
|
|
if (_drawToolBarGradient) {
|
|
|
|
|
TQDockWindow *wind = (TQDockWindow*)widget;
|
|
|
|
|
bool horizontal=false;
|
|
|
|
|
if ( Qt::Horizontal==wind->orientation() ) {
|
|
|
|
|
if ( TQt::Horizontal==wind->orientation() ) {
|
|
|
|
|
horizontal=true;
|
|
|
|
|
}
|
|
|
|
|
if (_invertBarGrad) {
|
|
|
|
|