diff options
Diffstat (limited to 'src/styles/tqinterlacestyle.cpp')
| -rw-r--r-- | src/styles/tqinterlacestyle.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/styles/tqinterlacestyle.cpp b/src/styles/tqinterlacestyle.cpp index a0cd70c58..01e166a7a 100644 --- a/src/styles/tqinterlacestyle.cpp +++ b/src/styles/tqinterlacestyle.cpp @@ -74,7 +74,7 @@ */ TQInterlaceStyle::TQInterlaceStyle() : TQMotifStyle() { - setUseHighlightColors( TRUE ); + setUseHighlightColors( true ); } /*! \reimp @@ -133,7 +133,7 @@ void TQInterlaceStyle::polish( TQApplication *app) dcg.setColor( TQColorGroup::ButtonText, low ); dcg.setColor( TQColorGroup::Text, low ); - app->setPalette( TQPalette( cg, dcg, cg ), TRUE ); + app->setPalette( TQPalette( cg, dcg, cg ), true ); } /*! @@ -141,7 +141,7 @@ void TQInterlaceStyle::polish( TQApplication *app) */ void TQInterlaceStyle::unPolish( TQApplication *app) { - app->setPalette(oldPalette, TRUE); + app->setPalette(oldPalette, true); } /*! @@ -162,7 +162,7 @@ void TQInterlaceStyle::polish( TQWidget* w) if ( w->inherits("TQGroupBox") || w->inherits("TQTabWidget") || w->inherits("TQPushButton") ) { - w->setAutoMask( TRUE ); + w->setAutoMask( true ); return; } if (w->inherits("TQLabel") @@ -220,7 +220,7 @@ void TQInterlaceStyle::unPolish( TQWidget* w) if ( w->inherits("TQGroupBox") || w->inherits("TQTabWidget") || w->inherits("TQPushButton" ) ) { - w->setAutoMask( FALSE ); + w->setAutoMask( false ); return; } if (w->inherits("TQLabel") @@ -313,7 +313,7 @@ void TQInterlaceStyle::drawButtonMask( TQPainter * p, int x, int y, int w, int h TQBrush fill( color1 ); TQColorGroup cg; cg.setBrush( TQColorGroup::Dark, color1 ); - drawButton( p, x, y, w, h, cg, FALSE, &fill ); + drawButton( p, x, y, w, h, cg, false, &fill ); } /*! @@ -341,11 +341,11 @@ void TQInterlaceStyle::drawPushButton( TQPushButton* btn, TQPainter *p) if ( btn->hasFocus() ) g.setBrush( TQColorGroup::Dark, black ); - drawButton( p, x1, y1, x2-x1+1, y2-y1+1, g, FALSE, &fill ); + drawButton( p, x1, y1, x2-x1+1, y2-y1+1, g, false, &fill ); if ( btn->isMenuButton() ) { int dx = (y1-y2-4)/3; - drawArrow( p, DownArrow, FALSE, + drawArrow( p, DownArrow, false, x2 - dx, dx, y1, y2 - y1, g, btn->isEnabled() ); } @@ -382,7 +382,7 @@ void TQInterlaceStyle::drawIndicator( TQPainter * p, int x, int y, int w, int h, else fill = g.brush( enabled ? TQColorGroup::Base : TQColorGroup::Background ); - drawButton( p, x, y, w, h, g, FALSE, &fill ); + drawButton( p, x, y, w, h, g, false, &fill ); if ( s != TQButton::Off ) { TQPointArray a( 7*2 ); @@ -522,9 +522,9 @@ void TQInterlaceStyle::drawComboButton( TQPainter *p, int x, int y, int w, int h int awh, ax, ay, sh, sy, dh, ew; get_combo_parameters( buttonRect(x,y,w,h), ew, awh, ax, ay, sh, dh, sy ); - drawButton( p, x, y, w, h, g, FALSE, &fill ); + drawButton( p, x, y, w, h, g, false, &fill ); - qDrawArrow( p, DownArrow, MotifStyle, FALSE, ax, ay, awh, awh, g, TRUE ); + qDrawArrow( p, DownArrow, MotifStyle, false, ax, ay, awh, awh, g, true ); p->setPen( g.dark() ); p->drawRect( ax+1, sy+1, awh-1, sh-1 ); @@ -626,7 +626,7 @@ void TQInterlaceStyle::drawScrollBarControls( TQPainter* p, const TQScrollBar* s } if ( controls == (AddLine | SubLine | AddPage | SubPage | Slider | First | Last ) ) - drawPanel( p, 0, 0, sb->width(), sb->height(), g, FALSE, 2, &fill ); + drawPanel( p, 0, 0, sb->width(), sb->height(), g, false, 2, &fill ); if (sliderStart > sliderMax) { // sanity check sliderStart = sliderMax; @@ -673,11 +673,11 @@ void TQInterlaceStyle::drawScrollBarControls( TQPainter* p, const TQScrollBar* s if ( controls & AddLine ) drawArrow( p, VERTICAL ? DownArrow : RightArrow, ADD_LINE_ACTIVE, addB.x(), addB.y(), - addB.width(), addB.height(), g, TRUE ); + addB.width(), addB.height(), g, true ); if ( controls & SubLine ) drawArrow( p, VERTICAL ? UpArrow : LeftArrow, SUB_LINE_ACTIVE, subB.x(), subB.y(), - subB.width(), subB.height(), g, TRUE ); + subB.width(), subB.height(), g, true ); if ( controls & SubPage ) p->fillRect( subPageR, fill ); @@ -691,7 +691,7 @@ void TQInterlaceStyle::drawScrollBarControls( TQPainter* p, const TQScrollBar* s if ( sliderR.isValid() ) drawButton( p, sliderR.x(), sliderR.y(), sliderR.width(), sliderR.height(), g, - FALSE, &g.brush( TQColorGroup::Button ) ); + false, &g.brush( TQColorGroup::Button ) ); p->setBrushOrigin(bo); } @@ -703,13 +703,13 @@ void TQInterlaceStyle::drawScrollBarControls( TQPainter* p, const TQScrollBar* s void TQInterlaceStyle::drawSlider ( TQPainter * p, int x, int y, int w, int h, const TQColorGroup & g, Orientation orient, bool, bool) { p->fillRect( x, y, w, h, g.brush( TQColorGroup::Background ) ); - drawButton( p, x, y, w, h, g, FALSE, &g.brush( TQColorGroup::Button ) ); + drawButton( p, x, y, w, h, g, false, &g.brush( TQColorGroup::Button ) ); if ( orient == Horizontal ) { TQCOORD mid = x + w / 2; - qDrawShadeLine( p, mid, y , mid, y + h - 2, g, TRUE, 1); + qDrawShadeLine( p, mid, y , mid, y + h - 2, g, true, 1); } else { TQCOORD mid = y +h / 2; - qDrawShadeLine( p, x, mid, x + w - 2, mid, g, TRUE, 1); + qDrawShadeLine( p, x, mid, x + w - 2, mid, g, true, 1); } } @@ -723,9 +723,9 @@ void TQInterlaceStyle::drawSliderGroove ( TQPainter * p, int x, int y, int w, in p->setPen( NoPen ); if ( o == Horizontal ) - drawButton( p, x, y+h/2-3, w, 6, g, FALSE, &g.brush( TQColorGroup::Mid ) ); + drawButton( p, x, y+h/2-3, w, 6, g, false, &g.brush( TQColorGroup::Mid ) ); else - drawButton( p, x+w/2-3, y, 6, h, g, FALSE, &g.brush( TQColorGroup::Mid ) ); + drawButton( p, x+w/2-3, y, 6, h, g, false, &g.brush( TQColorGroup::Mid ) ); } @@ -753,7 +753,7 @@ void TQInterlaceStyle::drawSplitter( TQPainter *p, int x, int y, int w, int h, qDrawShadeLine( p, xPos, kPos + kSize - 1 , xPos, h, g ); drawPanel( p, xPos-sw/2+2, kPos, - kSize, kSize, g, FALSE, 2, + kSize, kSize, g, false, 2, &g.brush( TQColorGroup::Button )); qDrawShadeLine( p, xPos, 0, xPos, kPos, g ); } else { @@ -763,7 +763,7 @@ void TQInterlaceStyle::drawSplitter( TQPainter *p, int x, int y, int w, int h, qDrawShadeLine( p, 0, yPos, kPos, yPos, g ); drawPanel( p, kPos, yPos-sw/2+2, - kSize, kSize, g, FALSE, 2, + kSize, kSize, g, false, 2, &g.brush( TQColorGroup::Button )); qDrawShadeLine( p, kPos + kSize -1, yPos, w, yPos, g ); |
