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