diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 15:50:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-07 23:25:01 +0900 |
commit | 664580ffc694a1f9e7ab25d4636ca9696a38d958 (patch) | |
tree | daea2bbeea9cce36e9c8fe66afd1930e397e7ebd /kgoldrunner/src/kgrdialog.cpp | |
parent | d62a856cb43f9a527dc936783d18fbfe4cc0d9c2 (diff) | |
download | tdegames-r14.1.4.tar.gz tdegames-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 66230b1cca2fa5c95886d8cf708829e4bfac2b10)
Diffstat (limited to 'kgoldrunner/src/kgrdialog.cpp')
-rw-r--r-- | kgoldrunner/src/kgrdialog.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kgoldrunner/src/kgrdialog.cpp b/kgoldrunner/src/kgrdialog.cpp index 4e7a8dba..0cb8a947 100644 --- a/kgoldrunner/src/kgrdialog.cpp +++ b/kgoldrunner/src/kgrdialog.cpp @@ -30,7 +30,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, TQPtrList<KGrCollection> & gamesList, KGrGame * theGame, TQWidget * parent, const char * name) - : TQDialog (parent, name, TRUE, + : TQDialog (parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title) #else KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, @@ -71,7 +71,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, gameInfo->setSpacing (spacing); collnN = new TQLabel ("", gameInfo); // Name of selected collection. TQFont f = collnN->font(); - f.setBold (TRUE); + f.setBold (true); collnN->setFont (f); collnA = new TQPushButton (i18n("More Info"), gameInfo); @@ -143,7 +143,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, #endif // Set the default for the level-number in the scrollbar. - number-> setTracking (TRUE); + number-> setTracking (true); number->setValue (requestedLevel); slSetCollections (defaultGame); @@ -154,8 +154,8 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, case SL_START: // Must start at level 1, but can choose a collection. OKText = i18n("Start Game"); number->setValue (1); - number->setEnabled(FALSE); - display->setEnabled(FALSE); + number->setEnabled(false); + display->setEnabled(false); number->hide(); numberL->hide(); display->hide(); @@ -181,8 +181,8 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, case SL_UPD_GAME: // Can only edit USER collection details. OKText = i18n("Edit Game Info"); number->setValue (1); - number->setEnabled(FALSE); - display->setEnabled(FALSE); + number->setEnabled(false); + display->setEnabled(false); number->hide(); numberL->hide(); display->hide(); @@ -227,7 +227,7 @@ KGrSLDialog::KGrSLDialog (int action, int requestedLevel, int collnIndex, connect (levelNH, TQ_SIGNAL (clicked()), game, TQ_SLOT (editNameAndHint())); } else { - levelNH->setEnabled (FALSE); + levelNH->setEnabled (false); levelNH->hide(); } @@ -275,7 +275,7 @@ void KGrSLDialog::slSetCollections (int cIndex) } // Mark the currently selected collection (or default 0). colln->setCurrentItem (cIndex); - colln->setSelected (cIndex, TRUE); + colln->setSelected (cIndex, true); // Fetch and display information on the selected collection. slColln (cIndex); @@ -293,7 +293,7 @@ void KGrSLDialog::slColln (int i) } // User "highlighted" a new collection (with one click) ... - colln->setSelected (i, TRUE); // One click = selected. + colln->setSelected (i, true); // One click = selected. slCollnIndex = i; int n = slCollnIndex; // Collection selected. int N = defaultGame; // Current collection. @@ -383,7 +383,7 @@ void KGrSLDialog::slUpdate (const TQString & text) { // Move the slider when a valid level number is entered. TQString s = text; - bool ok = FALSE; + bool ok = false; int n = s.toInt (&ok); if (ok) { number->setValue (n); @@ -487,7 +487,7 @@ void KGrSLDialog::slotHelp () #ifdef KGR_PORTABLE KGrNHDialog::KGrNHDialog(const TQString & levelName, const TQString & levelHint, TQWidget * parent, const char * name) - : TQDialog (parent, name, TRUE, + : TQDialog (parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title) #else KGrNHDialog::KGrNHDialog(const TQString & levelName, const TQString & levelHint, @@ -574,7 +574,7 @@ KGrNHDialog::~KGrNHDialog() KGrECDialog::KGrECDialog (int action, int collnIndex, TQPtrList<KGrCollection> & gamesList, TQWidget * parent, const char * name) - : TQDialog (parent, name, TRUE, + : TQDialog (parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title) #else KGrECDialog::KGrECDialog (int action, int collnIndex, @@ -661,7 +661,7 @@ KGrECDialog::KGrECDialog (int action, int collnIndex, ecPrefix-> setText (collections.at(defaultGame)->prefix); if (collections.at(defaultGame)->nLevels > 0) { // Collection already has some levels, so cannot change the prefix. - ecPrefix-> setEnabled (FALSE); + ecPrefix-> setEnabled (false); } TQString s; #ifndef KGR_PORTABLE @@ -732,12 +732,12 @@ KGrECDialog::~KGrECDialog() void KGrECDialog::ecSetRules (const char settings) { - ecKGrB-> setChecked (FALSE); - ecTradB-> setChecked (FALSE); + ecKGrB-> setChecked (false); + ecTradB-> setChecked (false); if (settings == 'K') - ecKGrB-> setChecked (TRUE); + ecKGrB-> setChecked (true); else - ecTradB-> setChecked (TRUE); + ecTradB-> setChecked (true); } void KGrECDialog::ecSetKGr () {ecSetRules ('K');} // Radio button slots. @@ -751,7 +751,7 @@ void KGrECDialog::ecSetTrad () {ecSetRules ('T');} KGrLGDialog::KGrLGDialog (TQFile * savedGames, TQPtrList<KGrCollection> & collections, TQWidget * parent, const char * name) - : TQDialog (parent, name, TRUE, + : TQDialog (parent, name, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title) #else KGrLGDialog::KGrLGDialog (TQFile * savedGames, @@ -784,9 +784,9 @@ KGrLGDialog::KGrLGDialog (TQFile * savedGames, #else TQFont f = TDEGlobalSettings::fixedFont(); // KDE version. #endif - f.setFixedPitch (TRUE); + f.setFixedPitch (true); lgList-> setFont (f); - f.setBold (TRUE); + f.setBold (true); lgHeader-> setFont (f); mainLayout-> addWidget (lgHeader); @@ -825,11 +825,11 @@ KGrLGDialog::KGrLGDialog (TQFile * savedGames, // Read the saved games into the list box. while (! gameText.endData()) { s = gameText.readLine(); // Read in one saved game. - pr = s.left (s.find (" ", 0, FALSE)); // Get the collection prefix. + pr = s.left (s.find (" ", 0, false)); // Get the collection prefix. for (i = 0; i < imax; i++) { // Get the collection name. if (collections.at(i)->prefix == pr) { s = s.insert (0, - collections.at(i)->name.leftJustify (20, ' ', TRUE) + " "); + collections.at(i)->name.leftJustify (20, ' ', true) + " "); break; } } @@ -839,7 +839,7 @@ KGrLGDialog::KGrLGDialog (TQFile * savedGames, // Mark row 0 (the most recently saved game) as the default selection. lgList-> setCurrentItem (0); - lgList-> setSelected (0, TRUE); + lgList-> setSelected (0, true); lgHighlight = 0; connect (lgList, TQ_SIGNAL (highlighted (int)), this, TQ_SLOT (lgSelect (int))); @@ -911,7 +911,7 @@ void KGrMessage::wrapped (TQWidget * parent, TQString title, TQString contents) #ifndef KGR_PORTABLE KMessageBox::information (parent, contents, title); #else - TQDialog * mm = new TQDialog (parent, "wrappedMessage", TRUE, + TQDialog * mm = new TQDialog (parent, "wrappedMessage", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title); int margin = 10; @@ -951,7 +951,7 @@ void KGrMessage::wrapped (TQWidget * parent, TQString title, TQString contents) mle-> setFrameStyle (TQFrame::NoFrame); mle-> setAlignment (AlignLeft); - mle-> setReadOnly (TRUE); + mle-> setReadOnly (true); mle-> setText (contents); #ifndef QT3 |