@ -135,14 +135,14 @@ static bool kickerIsTrans() {
line = stream . readLine ( ) ;
if ( inGen ) {
if ( 0 = = line . tq find( " Transparent= " ) ) // Found it!
if ( 0 = = line . find( " Transparent= " ) ) // Found it!
{
if ( - 1 ! = line . tq find( " true " ) )
if ( - 1 ! = line . find( " true " ) )
trans = true ;
stop = true ;
} else if ( line [ 0 ] = = TQChar ( ' [ ' ) ) // Then wasn't in General section...
stop = true ;
} else if ( 0 = = line . tq find( " [General] " ) )
} else if ( 0 = = line . find( " [General] " ) )
inGen = true ;
}
cfgFile . close ( ) ;
@ -2718,7 +2718,7 @@ void KlearlookStyle::tqdrawControl(
TQString text = mi - > text ( ) ;
if ( ! text . isNull ( ) ) {
int t = text . tq find( ' \t ' ) ;
int t = text . find( ' \t ' ) ;
// draw accelerator/tab-text
if ( t > = 0 ) {
@ -3522,7 +3522,7 @@ TQSize KlearlookStyle::tqsizeFromContents( ContentsType t,
}
}
if ( ! mi - > text ( ) . isNull ( ) & & ( mi - > text ( ) . tq find( ' \t ' ) > = 0 ) ) {
if ( ! mi - > text ( ) . isNull ( ) & & ( mi - > text ( ) . find( ' \t ' ) > = 0 ) ) {
w + = itemHMargin + itemFrame * 2 + 7 ;
} else if ( mi - > popup ( ) ) {
w + = 2 * arrowHMargin ;
@ -3898,9 +3898,9 @@ bool KlearlookStyle::redrawHoverWidget() {
tqvisualRect ( subRect ( SR_RadioButtonFocusRect , rb ) , rb ) . width ( ) +
tqpixelMetric ( PM_ExclusiveIndicatorWidth ) + 4 , hoverWidget - > height ( ) ) ;
hover = rect . tq contains( cursor ) ? HOVER_RADIO : HOVER_NONE ;
return ( HOVER_NONE ! = hover & & ! rect . tq contains( oldCursor ) ) | |
( HOVER_NONE = = hover & & rect . tq contains( oldCursor ) ) ;
hover = rect . contains( cursor ) ? HOVER_RADIO : HOVER_NONE ;
return ( HOVER_NONE ! = hover & & ! rect . contains( oldCursor ) ) | |
( HOVER_NONE = = hover & & rect . contains( oldCursor ) ) ;
} else {
TQCheckBox * cb = dynamic_cast < TQCheckBox * > ( hoverWidget ) ;
@ -3909,9 +3909,9 @@ bool KlearlookStyle::redrawHoverWidget() {
tqvisualRect ( subRect ( SR_CheckBoxFocusRect , cb ) , cb ) . width ( ) +
tqpixelMetric ( PM_IndicatorWidth ) + 4 , hoverWidget - > height ( ) ) ;
hover = rect . tq contains( cursor ) ? HOVER_CHECK : HOVER_NONE ;
return ( HOVER_NONE ! = hover & & ! rect . tq contains( oldCursor ) ) | |
( HOVER_NONE = = hover & & rect . tq contains( oldCursor ) ) ;
hover = rect . contains( cursor ) ? HOVER_CHECK : HOVER_NONE ;
return ( HOVER_NONE ! = hover & & ! rect . contains( oldCursor ) ) | |
( HOVER_NONE = = hover & & rect . contains( oldCursor ) ) ;
} else {
TQScrollBar * sb = dynamic_cast < TQScrollBar * > ( hoverWidget ) ;
@ -3928,21 +3928,21 @@ bool KlearlookStyle::redrawHoverWidget() {
slider . moveLeft ( slider . x ( ) + widgetZero . x ( ) ) ;
slider . moveTop ( slider . y ( ) + widgetZero . y ( ) ) ;
if ( slider . tq contains( cursor ) )
if ( slider . contains( cursor ) )
hover = HOVER_SB_SLIDER ;
else if ( subline . tq contains( cursor ) )
else if ( subline . contains( cursor ) )
hover = HOVER_SB_SUB ;
else if ( addline . tq contains( cursor ) )
else if ( addline . contains( cursor ) )
hover = HOVER_SB_ADD ;
else
hover = HOVER_NONE ;
return ( HOVER_SB_SLIDER = = hover & & ! slider . tq contains( oldCursor ) ) | |
( HOVER_SB_SLIDER ! = hover & & slider . tq contains( oldCursor ) ) | |
( HOVER_SB_SUB = = hover & & ! subline . tq contains( oldCursor ) ) | |
( HOVER_SB_SUB ! = hover & & subline . tq contains( oldCursor ) ) | |
( HOVER_SB_ADD = = hover & & ! addline . tq contains( oldCursor ) ) | |
( HOVER_SB_ADD ! = hover & & addline . tq contains( oldCursor ) ) ;
return ( HOVER_SB_SLIDER = = hover & & ! slider . contains( oldCursor ) ) | |
( HOVER_SB_SLIDER ! = hover & & slider . contains( oldCursor ) ) | |
( HOVER_SB_SUB = = hover & & ! subline . contains( oldCursor ) ) | |
( HOVER_SB_SUB ! = hover & & subline . contains( oldCursor ) ) | |
( HOVER_SB_ADD = = hover & & ! addline . contains( oldCursor ) ) | |
( HOVER_SB_ADD ! = hover & & addline . contains( oldCursor ) ) ;
} else {
# if KDE_VERSION >= 0x30400
TQToolButton * tb = dynamic_cast < TQToolButton * > ( hoverWidget ) ;
@ -3968,7 +3968,7 @@ bool KlearlookStyle::redrawHoverWidget() {
int s = 0 ;
bool redraw = false ;
hover = rect . tq contains( cursor ) ? HOVER_HEADER : HOVER_NONE ;
hover = rect . contains( cursor ) ? HOVER_HEADER : HOVER_NONE ;
hoverSect = TQTC_NO_SECT ;
for ( s = 0 ; s < hd - > count ( ) & & ( TQTC_NO_SECT = = hoverSect | | ! redraw ) ; + + s ) {
@ -3977,13 +3977,13 @@ bool KlearlookStyle::redrawHoverWidget() {
r . moveLeft ( r . x ( ) + widgetZero . x ( ) ) ;
r . moveTop ( r . y ( ) + widgetZero . y ( ) ) ;
bool hasNew = r . tq contains( cursor ) ;
bool hasNew = r . contains( cursor ) ;
if ( hasNew )
hoverSect = s ;
if ( ! redraw ) {
bool hasOld = r . tq contains( oldCursor ) ;
bool hasOld = r . contains( oldCursor ) ;
if ( ( hasNew & & ! hasOld ) | | ( ! hasNew & & hasOld ) )
redraw = true ;