diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-30 14:27:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-06-25 16:43:08 +0900 |
| commit | 35ced32e331ee29fda1642616c803637952f5b22 (patch) | |
| tree | da44726777f814e19c7ef1e43854f6a1693dd6fb /tools/qconfig/main.cpp | |
| parent | 7dd4848d61e4c52091d6c644356c84c67536bde2 (diff) | |
| download | tqt-35ced32e.tar.gz tqt-35ced32e.zip | |
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/qconfig/main.cpp')
| -rw-r--r-- | tools/qconfig/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/qconfig/main.cpp b/tools/qconfig/main.cpp index a34e2a667..229d6bb97 100644 --- a/tools/qconfig/main.cpp +++ b/tools/qconfig/main.cpp @@ -189,9 +189,9 @@ public: CheckBox), id(i) { - setOpen(TRUE); + setOpen(true); label = text(0); - avl = TRUE; + avl = true; } // We reverse the logic @@ -270,7 +270,7 @@ Main::Main() lv = new TQListView(horizontal); lv->setSorting(-1); - lv->setRootIsDecorated(TRUE); + lv->setRootIsDecorated(true); lv->addColumn("ID"); info = new Info(horizontal); @@ -463,8 +463,8 @@ void Main::loadFeatures(const TQString& filename) TQString sec; TQString lab; TQString doc; - bool on = FALSE; - bool docmode = FALSE; + bool on = false; + bool docmode = false; TQStringList deps; do { @@ -475,7 +475,7 @@ void Main::loadFeatures(const TQString& filename) if ( on ) { if ( docmode ) { if ( token[0] == "*/" ) - docmode = FALSE; + docmode = false; else if ( lab.isEmpty() ) lab = line.stripWhiteSpace(); else @@ -491,7 +491,7 @@ void Main::loadFeatures(const TQString& filename) doc = ""; lab = ""; } else if ( token[0] == "/*!" ) { - docmode = TRUE; + docmode = true; } else if ( token[0] == "//" ) { token.remove(token.begin()); sec = token.join(" "); @@ -516,7 +516,7 @@ void Main::loadFeatures(const TQString& filename) tqDebug("Cannot parse: %s",token.join(" ").ascii()); } } else if ( token[0] == "#include" ) { - on = TRUE; + on = true; } } while (!s.atEnd()); #endif @@ -572,7 +572,7 @@ void Main::loadConfig(const TQString& filename) TQRegExp qt_no_xxx("TQT_NO_[A-Z_0-9]*"); for (TQStringList::Iterator ch = choices.begin(); ch != choices.end(); ++ch) { - item[*ch]->setDefined(FALSE); + item[*ch]->setDefined(false); } do { TQString line = s.readLine(); @@ -580,7 +580,7 @@ void Main::loadConfig(const TQString& filename) if ( token[0] == "#define" ) { ChoiceItem* i = item[token[1]]; if ( i ) - i->setDefined(TRUE); + i->setDefined(true); else tqDebug("The item %s is not used by ntqfeatures.h", token[1].latin1()); } @@ -599,14 +599,14 @@ void Main::updateAvailability(TQListViewItem* i) { ChoiceItem* d = item[*it]; TQStringList ddeps = dependencies[d->id]; - bool av = TRUE; + bool av = true; for (TQStringList::ConstIterator dit = ddeps.begin(); av && dit != ddeps.end(); ++dit) { ChoiceItem* dd = item[*dit]; if ( dd ) { if ( dd->isDefined() || !dd->isAvailable() ) - av = FALSE; + av = false; } else tqDebug("%s ???",(*dit).latin1()); } @@ -665,7 +665,7 @@ void Main::selectId(const TQString& id) { TQListViewItem* it = item[id]; if ( it ) { - lv->setSelected(it,TRUE); + lv->setSelected(it,true); lv->ensureItemVisible(it); } } |
