diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-13 09:38:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-15 18:46:42 +0900 |
commit | ad58630b34fc61754c763cf951004ef27e38d33d (patch) | |
tree | 168cf1d101c4583c84d02c116cd305763118277b /tdestyles/asteroid/asteroid.cpp | |
parent | bedc43ef09d9569fb7643849e8f24dd46c379eba (diff) | |
download | tdelibs-ad58630b34fc61754c763cf951004ef27e38d33d.tar.gz tdelibs-ad58630b34fc61754c763cf951004ef27e38d33d.zip |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdestyles/asteroid/asteroid.cpp')
-rw-r--r-- | tdestyles/asteroid/asteroid.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tdestyles/asteroid/asteroid.cpp b/tdestyles/asteroid/asteroid.cpp index 768bceb05..8a66cbe80 100644 --- a/tdestyles/asteroid/asteroid.cpp +++ b/tdestyles/asteroid/asteroid.cpp @@ -148,7 +148,7 @@ AsteroidStyle::applicationPolish(const TQStyleControlElementData&, ControlElemen TQPalette wp = TQApplication::palette(); wp.setColor(TQColorGroup::Dark, TQColor(128, 128, 128)); wp.setColor(TQColorGroup::Mid, wp.active().color(TQColorGroup::Button).dark(150)); // Which GUI element(s) does this correspond to? - TQApplication::setPalette( wp, TRUE ); + TQApplication::setPalette( wp, true ); } /*! \reimp @@ -1015,8 +1015,7 @@ void AsteroidStyle::drawControl(ControlElement ce, const TQTab * t = o.tab(); bool selected = sf & Style_Selected; - bool lastTab = (ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1) ? - TRUE : FALSE; + bool lastTab = (ceData.tabBarData.identIndexMap[t->identifier()] == ceData.tabBarData.tabCount-1); TQRect r2( r ); if ( ceData.tabBarData.shape == TQTabBar::RoundedAbove ) { p->setPen( cg.light() ); @@ -1875,8 +1874,8 @@ void AsteroidStyle::drawComplexControl(ComplexControl cc, if ( !verticalLine ) { // make 128*1 and 1*128 bitmaps that can be used for // drawing the right sort of lines. - verticalLine = new TQBitmap( 1, 129, TRUE ); - horizontalLine = new TQBitmap( 128, 1, TRUE ); + verticalLine = new TQBitmap( 1, 129, true ); + horizontalLine = new TQBitmap( 128, 1, true ); TQPointArray a( 64 ); TQPainter p; p.begin( verticalLine ); |