summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqlayoutengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqlayoutengine.cpp')
-rw-r--r--src/kernel/tqlayoutengine.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/tqlayoutengine.cpp b/src/kernel/tqlayoutengine.cpp
index 9eee672e6..131e64d4b 100644
--- a/src/kernel/tqlayoutengine.cpp
+++ b/src/kernel/tqlayoutengine.cpp
@@ -73,12 +73,12 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
int sumStretch = 0;
int spacerCount = 0;
- bool wannaGrow = FALSE; // anyone who really wants to grow?
- // bool canShrink = FALSE; // anyone who could be persuaded to shrink?
+ bool wannaGrow = false; // anyone who really wants to grow?
+ // bool canShrink = false; // anyone who could be persuaded to shrink?
int i;
for ( i = start; i < start + count; i++ ) {
- chain[i].done = FALSE;
+ chain[i].done = false;
cHint += chain[i].smartSizeHint();
cMin += chain[i].minimumSize;
cMax += chain[i].maximumSize;
@@ -94,7 +94,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
if ( space < cMin + spacerCount * spacer ) {
for ( i = start; i < start+count; i++ ) {
chain[i].size = chain[i].minimumSize;
- chain[i].done = TRUE;
+ chain[i].done = true;
}
} else if ( space < cHint + spacerCount*spacer ) {
/*
@@ -112,7 +112,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
if ( !chain[i].done
&& chain[i].minimumSize >= chain[i].smartSizeHint() ) {
chain[i].size = chain[i].smartSizeHint();
- chain[i].done = TRUE;
+ chain[i].done = true;
space_left -= chain[i].smartSizeHint();
// sumStretch -= chain[i].stretch;
n--;
@@ -120,7 +120,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
}
bool finished = n == 0;
while ( !finished ) {
- finished = TRUE;
+ finished = true;
fixed fp_over = toFixed( overdraft );
fixed fp_w = 0;
@@ -135,9 +135,9 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
chain[i].size = chain[i].smartSizeHint() - w;
fp_w -= toFixed( w ); // give the difference to the next
if ( chain[i].size < chain[i].minimumSize ) {
- chain[i].done = TRUE;
+ chain[i].done = true;
chain[i].size = chain[i].minimumSize;
- finished = FALSE;
+ finished = false;
overdraft -= ( chain[i].smartSizeHint()
- chain[i].minimumSize );
// sumStretch -= chain[i].stretch;
@@ -155,7 +155,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
&& (chain[i].maximumSize <= chain[i].smartSizeHint()
|| (wannaGrow && !chain[i].expansive && chain[i].stretch == 0)) ) {
chain[i].size = chain[i].smartSizeHint();
- chain[i].done = TRUE;
+ chain[i].done = true;
space_left -= chain[i].smartSizeHint();
sumStretch -= chain[i].stretch;
n--;
@@ -201,7 +201,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
if ( !chain[i].done &&
chain[i].size < chain[i].smartSizeHint() ) {
chain[i].size = chain[i].smartSizeHint();
- chain[i].done = TRUE;
+ chain[i].done = true;
space_left -= chain[i].smartSizeHint();
sumStretch -= chain[i].stretch;
n--;
@@ -214,7 +214,7 @@ TQ_EXPORT void qGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int coun
if ( !chain[i].done &&
chain[i].size > chain[i].maximumSize ) {
chain[i].size = chain[i].maximumSize;
- chain[i].done = TRUE;
+ chain[i].done = true;
space_left -= chain[i].maximumSize;
sumStretch -= chain[i].stretch;
n--;