@ -1743,7 +1743,7 @@ bool KLegacyStylePrivate::parseStyle() {
}
}
KLegacyStyle : : KLegacyStyle ( void ) : K Style( ) {
KLegacyStyle : : KLegacyStyle ( void ) : TDE Style( ) {
setButtonDefaultIndicatorWidth ( 6 ) ;
setButtonDefaultIndicatorWidth ( 6 ) ;
setScrollBarExtent ( 15 , 15 ) ;
setScrollBarExtent ( 15 , 15 ) ;
setButtonMargin ( 3 ) ;
setButtonMargin ( 3 ) ;
@ -1873,7 +1873,7 @@ void KLegacyStyle::polish(TQApplication *app) {
qt_set_draw_menu_bar_impl ( ( QDrawMenuBarItemImpl ) & KLegacyStyle : : drawMenuBarItem ) ;
qt_set_draw_menu_bar_impl ( ( QDrawMenuBarItemImpl ) & KLegacyStyle : : drawMenuBarItem ) ;
K Style: : polish ( app ) ;
TDE Style: : polish ( app ) ;
}
}
@ -2066,12 +2066,12 @@ void KLegacyStyle::polish(TQWidget *widget) {
widget - > setMouseTracking ( mouseTrack ) ;
widget - > setMouseTracking ( mouseTrack ) ;
}
}
K Style: : polish ( widget ) ;
TDE Style: : polish ( widget ) ;
}
}
void KLegacyStyle : : polishPopupMenu ( TQPopupMenu * popup ) {
void KLegacyStyle : : polishPopupMenu ( TQPopupMenu * popup ) {
K Style: : polishPopupMenu ( popup ) ;
TDE Style: : polishPopupMenu ( popup ) ;
popup - > setMouseTracking ( true ) ;
popup - > setMouseTracking ( true ) ;
popup - > setCheckable ( true ) ;
popup - > setCheckable ( true ) ;
@ -2089,7 +2089,7 @@ void KLegacyStyle::unPolish(TQWidget *widget) {
widget - > removeEventFilter ( this ) ;
widget - > removeEventFilter ( this ) ;
widget - > unsetPalette ( ) ;
widget - > unsetPalette ( ) ;
widget - > setAutoMask ( false ) ;
widget - > setAutoMask ( false ) ;
K Style: : unPolish ( widget ) ;
TDE Style: : unPolish ( widget ) ;
}
}
@ -2099,7 +2099,7 @@ void KLegacyStyle::unPolish(TQApplication *app) {
qt_set_draw_menu_bar_impl ( 0 ) ;
qt_set_draw_menu_bar_impl ( 0 ) ;
K Style: : unPolish ( app ) ;
TDE Style: : unPolish ( app ) ;
}
}
@ -2150,7 +2150,7 @@ void KLegacyStyle::drawBevelButton(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( TQButton : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQButton : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawBevelButton ( p , x , y , w , h , g , sunken , fill ) ;
TDE Style: : drawBevelButton ( p , x , y , w , h , g , sunken , fill ) ;
return ;
return ;
}
}
@ -2165,7 +2165,7 @@ void KLegacyStyle::drawBevelButton(TQPainter *p, int x, int y, int w, int h,
if ( pix & & ( ! pix - > isNull ( ) ) )
if ( pix & & ( ! pix - > isNull ( ) ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawBevelButton ( p , x , y , w , h , g , sunken , fill ) ;
TDE Style: : drawBevelButton ( p , x , y , w , h , g , sunken , fill ) ;
}
}
@ -2173,7 +2173,7 @@ void KLegacyStyle::drawPushButton(TQPushButton *btn, TQPainter *p) {
GtkObject * gobj = priv - > gtkDict . find ( TQPushButton : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQPushButton : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawPushButton ( btn , p ) ;
TDE Style: : drawPushButton ( btn , p ) ;
return ;
return ;
}
}
@ -2199,7 +2199,7 @@ void KLegacyStyle::drawPushButton(TQPushButton *btn, TQPainter *p) {
if ( pix )
if ( pix )
p - > drawPixmap ( x1 , y1 , * pix ) ;
p - > drawPixmap ( x1 , y1 , * pix ) ;
else
else
K Style: : drawBevelButton ( p , x1 , y1 , x2 - x1 + 1 , y2 - y1 + 1 ,
TDE Style: : drawBevelButton ( p , x1 , y1 , x2 - x1 + 1 , y2 - y1 + 1 ,
g , true , & fill ) ;
g , true , & fill ) ;
}
}
@ -2227,7 +2227,7 @@ void KLegacyStyle::drawPushButton(TQPushButton *btn, TQPainter *p) {
if ( pix & & ! pix - > isNull ( ) )
if ( pix & & ! pix - > isNull ( ) )
p - > drawPixmap ( x1 , y1 , * pix ) ;
p - > drawPixmap ( x1 , y1 , * pix ) ;
else {
else {
K Style: : drawBevelButton ( p , x1 , y1 , x2 - x1 + 1 , y2 - y1 + 1 ,
TDE Style: : drawBevelButton ( p , x1 , y1 , x2 - x1 + 1 , y2 - y1 + 1 ,
g , btn - > isOn ( ) | | btn - > isDown ( ) , & fill ) ;
g , btn - > isOn ( ) | | btn - > isDown ( ) , & fill ) ;
}
}
}
}
@ -2240,7 +2240,7 @@ void KLegacyStyle::drawIndicator(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawIndicator ( p , x , y , w , h , g , state , down , enabled ) ;
TDE Style: : drawIndicator ( p , x , y , w , h , g , state , down , enabled ) ;
return ;
return ;
}
}
@ -2255,7 +2255,7 @@ void KLegacyStyle::drawIndicator(TQPainter *p, int x, int y, int w, int h,
if ( pix & & ( ! pix - > isNull ( ) ) )
if ( pix & & ( ! pix - > isNull ( ) ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawIndicator ( p , x , y , w , h , g , state , down , enabled ) ;
TDE Style: : drawIndicator ( p , x , y , w , h , g , state , down , enabled ) ;
}
}
@ -2263,7 +2263,7 @@ void KLegacyStyle::drawIndicatorMask(TQPainter *p, int x, int y, int w, int h, i
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawIndicatorMask ( p , x , y , w , h , state ) ;
TDE Style: : drawIndicatorMask ( p , x , y , w , h , state ) ;
return ;
return ;
}
}
@ -2278,14 +2278,14 @@ void KLegacyStyle::drawIndicatorMask(TQPainter *p, int x, int y, int w, int h, i
if ( pix & & pix - > mask ( ) & & ! pix - > mask ( ) - > isNull ( ) )
if ( pix & & pix - > mask ( ) & & ! pix - > mask ( ) - > isNull ( ) )
p - > drawPixmap ( x , y , * ( pix - > mask ( ) ) ) ;
p - > drawPixmap ( x , y , * ( pix - > mask ( ) ) ) ;
else
else
K Style: : drawIndicatorMask ( p , x , y , w , h , state ) ;
TDE Style: : drawIndicatorMask ( p , x , y , w , h , state ) ;
}
}
TQSize KLegacyStyle : : indicatorSize ( void ) const {
TQSize KLegacyStyle : : indicatorSize ( void ) const {
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQCheckBox : : staticMetaObject ( ) ) ;
if ( ! gobj ) return K Style: : indicatorSize ( ) ;
if ( ! gobj ) return TDE Style: : indicatorSize ( ) ;
KLegacyImageDataKey key ;
KLegacyImageDataKey key ;
key . cachekey = 0 ;
key . cachekey = 0 ;
@ -2293,7 +2293,7 @@ TQSize KLegacyStyle::indicatorSize(void) const {
key . data . shadow = KLegacy : : Out ;
key . data . shadow = KLegacy : : Out ;
KLegacyImageData * id = gobj - > getImageData ( key , " checkbutton " ) ;
KLegacyImageData * id = gobj - > getImageData ( key , " checkbutton " ) ;
if ( ! id ) return K Style: : indicatorSize ( ) ;
if ( ! id ) return TDE Style: : indicatorSize ( ) ;
TQString filename ;
TQString filename ;
if ( ! id - > file . isNull ( ) )
if ( ! id - > file . isNull ( ) )
@ -2301,13 +2301,13 @@ TQSize KLegacyStyle::indicatorSize(void) const {
else if ( ! id - > overlayFile . isNull ( ) )
else if ( ! id - > overlayFile . isNull ( ) )
filename = id - > overlayFile ;
filename = id - > overlayFile ;
else
else
return K Style: : indicatorSize ( ) ;
return TDE Style: : indicatorSize ( ) ;
TQImage * image = imageCache - > find ( filename ) ;
TQImage * image = imageCache - > find ( filename ) ;
if ( ! image ) {
if ( ! image ) {
image = new TQImage ( filename ) ;
image = new TQImage ( filename ) ;
if ( ! image ) return K Style: : indicatorSize ( ) ;
if ( ! image ) return TDE Style: : indicatorSize ( ) ;
imageCache - > insert ( filename , image ) ;
imageCache - > insert ( filename , image ) ;
}
}
@ -2338,7 +2338,7 @@ void KLegacyStyle::drawExclusiveIndicator(TQPainter *p, int x, int y, int w, int
if ( pix & & ( ! pix - > isNull ( ) ) )
if ( pix & & ( ! pix - > isNull ( ) ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawExclusiveIndicator ( p , x , y , w , h , g , down , enabled ) ;
TDE Style: : drawExclusiveIndicator ( p , x , y , w , h , g , down , enabled ) ;
}
}
@ -2348,7 +2348,7 @@ void KLegacyStyle::drawExclusiveIndicatorMask(TQPainter *p, int x, int y, int w,
GtkObject * gobj = priv - > gtkDict . find ( TQRadioButton : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQRadioButton : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawExclusiveIndicatorMask ( p , x , y , w , h , on ) ;
TDE Style: : drawExclusiveIndicatorMask ( p , x , y , w , h , on ) ;
return ;
return ;
}
}
@ -2363,7 +2363,7 @@ void KLegacyStyle::drawExclusiveIndicatorMask(TQPainter *p, int x, int y, int w,
if ( pix & & pix - > mask ( ) & & ! pix - > mask ( ) - > isNull ( ) )
if ( pix & & pix - > mask ( ) & & ! pix - > mask ( ) - > isNull ( ) )
p - > drawPixmap ( x , y , * ( pix - > mask ( ) ) ) ;
p - > drawPixmap ( x , y , * ( pix - > mask ( ) ) ) ;
else
else
K Style: : drawExclusiveIndicatorMask ( p , x , y , w , h , on ) ;
TDE Style: : drawExclusiveIndicatorMask ( p , x , y , w , h , on ) ;
}
}
@ -2371,7 +2371,7 @@ TQSize KLegacyStyle::exclusiveIndicatorSize(void) const {
GtkObject * gobj = priv - > gtkDict . find ( TQRadioButton : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQRadioButton : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
return K Style: : indicatorSize ( ) ;
return TDE Style: : indicatorSize ( ) ;
}
}
KLegacyImageDataKey key ;
KLegacyImageDataKey key ;
@ -2380,7 +2380,7 @@ TQSize KLegacyStyle::exclusiveIndicatorSize(void) const {
key . data . shadow = KLegacy : : Out ;
key . data . shadow = KLegacy : : Out ;
KLegacyImageData * id = gobj - > getImageData ( key , " radiobutton " ) ;
KLegacyImageData * id = gobj - > getImageData ( key , " radiobutton " ) ;
if ( ! id ) return K Style: : indicatorSize ( ) ;
if ( ! id ) return TDE Style: : indicatorSize ( ) ;
TQString filename ;
TQString filename ;
if ( ! id - > file . isNull ( ) ) {
if ( ! id - > file . isNull ( ) ) {
@ -2388,7 +2388,7 @@ TQSize KLegacyStyle::exclusiveIndicatorSize(void) const {
} else if ( ! id - > overlayFile . isNull ( ) ) {
} else if ( ! id - > overlayFile . isNull ( ) ) {
filename = id - > overlayFile ;
filename = id - > overlayFile ;
} else {
} else {
return K Style: : indicatorSize ( ) ;
return TDE Style: : indicatorSize ( ) ;
}
}
TQImage * image = imageCache - > find ( filename ) ;
TQImage * image = imageCache - > find ( filename ) ;
@ -2396,7 +2396,7 @@ TQSize KLegacyStyle::exclusiveIndicatorSize(void) const {
image = new TQImage ( filename ) ;
image = new TQImage ( filename ) ;
if ( ! image ) {
if ( ! image ) {
return K Style: : indicatorSize ( ) ;
return TDE Style: : indicatorSize ( ) ;
}
}
imageCache - > insert ( filename , image ) ;
imageCache - > insert ( filename , image ) ;
@ -2534,7 +2534,7 @@ void KLegacyStyle::drawComboButton(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( TQComboBox : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQComboBox : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawComboButton ( p , x , y , w , h , g , sunken , editable , enabled , b ) ;
TDE Style: : drawComboButton ( p , x , y , w , h , g , sunken , editable , enabled , b ) ;
return ;
return ;
}
}
@ -2552,7 +2552,7 @@ void KLegacyStyle::drawComboButton(TQPainter *p, int x, int y, int w, int h,
if ( pix & & ! pix - > isNull ( ) ) {
if ( pix & & ! pix - > isNull ( ) ) {
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
} else {
} else {
K Style: : drawComboButton ( p , x , y , w , h , g , sunken , editable , enabled , b ) ;
TDE Style: : drawComboButton ( p , x , y , w , h , g , sunken , editable , enabled , b ) ;
return ;
return ;
}
}
@ -2574,7 +2574,7 @@ TQRect KLegacyStyle::comboButtonRect(int x, int y, int w, int h) {
GtkObject * gobj = priv - > gtkDict . find ( TQComboBox : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQComboBox : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
return K Style: : comboButtonRect ( x , y , w , h ) ;
return TDE Style: : comboButtonRect ( x , y , w , h ) ;
}
}
KLegacyImageDataKey key ;
KLegacyImageDataKey key ;
@ -2583,7 +2583,7 @@ TQRect KLegacyStyle::comboButtonRect(int x, int y, int w, int h) {
KLegacyImageData * id = gobj - > getImageData ( key , " optionmenu " ) ;
KLegacyImageData * id = gobj - > getImageData ( key , " optionmenu " ) ;
if ( ! id ) {
if ( ! id ) {
return K Style: : comboButtonRect ( x , y , w , h ) ;
return TDE Style: : comboButtonRect ( x , y , w , h ) ;
}
}
return TQRect ( x + id - > border . left ( ) + 1 , y + id - > border . top ( ) + 1 ,
return TQRect ( x + id - > border . left ( ) + 1 , y + id - > border . top ( ) + 1 ,
@ -2651,7 +2651,7 @@ void KLegacyStyle::drawScrollBarControls(TQPainter *p, const TQScrollBar *scroll
GtkObject * gobj = priv - > gtkDict . find ( TQScrollBar : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQScrollBar : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
TDE Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
return ;
return ;
}
}
@ -2663,7 +2663,7 @@ void KLegacyStyle::drawScrollBarControls(TQPainter *p, const TQScrollBar *scroll
KLegacyImageData * groove_id = gobj - > getImageData ( gkey , " trough " ) ;
KLegacyImageData * groove_id = gobj - > getImageData ( gkey , " trough " ) ;
if ( ! groove_id ) {
if ( ! groove_id ) {
K Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
TDE Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
return ;
return ;
}
}
@ -2704,7 +2704,7 @@ void KLegacyStyle::drawScrollBarControls(TQPainter *p, const TQScrollBar *scroll
KLegacyImageData * slider_id = gobj - > getImageData ( skey , " slider " ) ;
KLegacyImageData * slider_id = gobj - > getImageData ( skey , " slider " ) ;
if ( ! slider_id ) {
if ( ! slider_id ) {
K Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
TDE Style: : drawScrollBarControls ( p , scrollbar , start , controls , active ) ;
return ;
return ;
}
}
@ -2765,7 +2765,7 @@ void KLegacyStyle::drawSlider(TQPainter *p, int x, int y, int w, int h, const TQ
GtkObject * gobj = priv - > gtkDict . find ( TQSlider : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQSlider : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawSlider ( p , x , y , w , h , g , orientation , tickAbove , tickBelow ) ;
TDE Style: : drawSlider ( p , x , y , w , h , g , orientation , tickAbove , tickBelow ) ;
return ;
return ;
}
}
@ -2781,7 +2781,7 @@ void KLegacyStyle::drawSlider(TQPainter *p, int x, int y, int w, int h, const TQ
if ( pix & & ! pix - > isNull ( ) )
if ( pix & & ! pix - > isNull ( ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawSlider ( p , x , y , w , h , g , orientation , tickAbove , tickBelow ) ;
TDE Style: : drawSlider ( p , x , y , w , h , g , orientation , tickAbove , tickBelow ) ;
}
}
@ -2792,7 +2792,7 @@ void KLegacyStyle::drawSliderGroove(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( TQSlider : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQSlider : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawSliderGroove ( p , x , y , w , h , g , c , o ) ;
TDE Style: : drawSliderGroove ( p , x , y , w , h , g , c , o ) ;
return ;
return ;
}
}
@ -2808,7 +2808,7 @@ void KLegacyStyle::drawSliderGroove(TQPainter *p, int x, int y, int w, int h,
if ( pix & & ! pix - > isNull ( ) )
if ( pix & & ! pix - > isNull ( ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawSliderGroove ( p , x , y , w , h , g , c , o ) ;
TDE Style: : drawSliderGroove ( p , x , y , w , h , g , c , o ) ;
}
}
@ -2819,7 +2819,7 @@ void KLegacyStyle::drawArrow(TQPainter *p, ArrowType type, bool down,
GtkObject * gobj = priv - > gtkDict . find ( & arrow_ptr ) ;
GtkObject * gobj = priv - > gtkDict . find ( & arrow_ptr ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
TDE Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
return ;
return ;
}
}
@ -2840,7 +2840,7 @@ void KLegacyStyle::drawArrow(TQPainter *p, ArrowType type, bool down,
if ( pix & & ! pix - > isNull ( ) )
if ( pix & & ! pix - > isNull ( ) )
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
else
else
K Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
TDE Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
}
}
@ -2851,7 +2851,7 @@ void KLegacyStyle::drawMenuArrow(TQPainter *p, ArrowType type, bool down,
GtkObject * gobj = priv - > gtkDict . find ( & menuitem_ptr ) ;
GtkObject * gobj = priv - > gtkDict . find ( & menuitem_ptr ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
TDE Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
return ;
return ;
}
}
@ -2868,14 +2868,14 @@ void KLegacyStyle::drawMenuArrow(TQPainter *p, ArrowType type, bool down,
p - > drawPixmap ( x + ( ( w - pix - > width ( ) ) / 2 ) ,
p - > drawPixmap ( x + ( ( w - pix - > width ( ) ) / 2 ) ,
y + ( ( h - pix - > height ( ) ) / 2 ) , * pix ) ;
y + ( ( h - pix - > height ( ) ) / 2 ) , * pix ) ;
else
else
K Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
TDE Style: : drawArrow ( p , type , down , x , y , w , h , g , enabled , b ) ;
}
}
void KLegacyStyle : : drawPanel ( TQPainter * p , int x , int y , int w , int h ,
void KLegacyStyle : : drawPanel ( TQPainter * p , int x , int y , int w , int h ,
const TQColorGroup & g , bool sunken , int , const TQBrush * brush )
const TQColorGroup & g , bool sunken , int , const TQBrush * brush )
{
{
K Style: : drawPanel ( p , x , y , w , h , g , sunken , 1 , brush ) ;
TDE Style: : drawPanel ( p , x , y , w , h , g , sunken , 1 , brush ) ;
}
}
@ -2894,7 +2894,7 @@ void KLegacyStyle::drawCheckMark(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( & checkmenuitem_ptr ) ;
GtkObject * gobj = priv - > gtkDict . find ( & checkmenuitem_ptr ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawCheckMark ( p , x , y , w , h , g , activated , disabled ) ;
TDE Style: : drawCheckMark ( p , x , y , w , h , g , activated , disabled ) ;
return ;
return ;
}
}
@ -2910,7 +2910,7 @@ void KLegacyStyle::drawCheckMark(TQPainter *p, int x, int y, int w, int h,
y + = ( h - pix - > height ( ) ) / 2 ;
y + = ( h - pix - > height ( ) ) / 2 ;
p - > drawPixmap ( x , y , * pix ) ;
p - > drawPixmap ( x , y , * pix ) ;
} else {
} else {
K Style: : drawCheckMark ( p , x , y , w , h , g , activated , disabled ) ;
TDE Style: : drawCheckMark ( p , x , y , w , h , g , activated , disabled ) ;
}
}
}
}
@ -2945,7 +2945,7 @@ void KLegacyStyle::drawTab(TQPainter *p, const TQTabBar *tabbar, TQTab *tab, boo
GtkObject * gobj = priv - > gtkDict . find ( TQTabBar : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQTabBar : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawTab ( p , tabbar , tab , selected ) ;
TDE Style: : drawTab ( p , tabbar , tab , selected ) ;
return ;
return ;
}
}
@ -2974,7 +2974,7 @@ void KLegacyStyle::drawTab(TQPainter *p, const TQTabBar *tabbar, TQTab *tab, boo
if ( pix & & ! pix - > isNull ( ) )
if ( pix & & ! pix - > isNull ( ) )
p - > drawPixmap ( tab - > r . left ( ) , ry , * pix ) ;
p - > drawPixmap ( tab - > r . left ( ) , ry , * pix ) ;
else
else
K Style: : drawTab ( p , tabbar , tab , selected ) ;
TDE Style: : drawTab ( p , tabbar , tab , selected ) ;
}
}
@ -2984,7 +2984,7 @@ void KLegacyStyle::drawKBarHandle(TQPainter *p, int x, int y, int w, int h,
GtkObject * gobj = priv - > gtkDict . find ( TQToolBar : : staticMetaObject ( ) ) ;
GtkObject * gobj = priv - > gtkDict . find ( TQToolBar : : staticMetaObject ( ) ) ;
if ( ! gobj ) {
if ( ! gobj ) {
K Style: : drawKBarHandle ( p , x , y , w , h , g , type , fill ) ;
TDE Style: : drawKBarHandle ( p , x , y , w , h , g , type , fill ) ;
return ;
return ;
}
}
@ -3362,5 +3362,5 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
}
}
}
}
return K Style: : eventFilter ( obj , e ) ;
return TDE Style: : eventFilter ( obj , e ) ;
}
}