summaryrefslogtreecommitdiffstats
path: root/kdialog/widgets.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-25 18:08:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-27 10:24:24 +0900
commit0a439ac80bdf6ffb9cac104ad3098a321ee0403c (patch)
tree737edb6e89138f645d20bab7378e1ba90df09863 /kdialog/widgets.cpp
parent0ba4723b7fad260e7bfe1848d0d16329779b090f (diff)
downloadtdebase-0a439ac80bdf6ffb9cac104ad3098a321ee0403c.tar.gz
tdebase-0a439ac80bdf6ffb9cac104ad3098a321ee0403c.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdialog/widgets.cpp')
-rw-r--r--kdialog/widgets.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdialog/widgets.cpp b/kdialog/widgets.cpp
index c0f3921f5..8a92a5dd3 100644
--- a/kdialog/widgets.cpp
+++ b/kdialog/widgets.cpp
@@ -83,12 +83,12 @@ bool Widgets::passwordBox(TQWidget *parent, const TQString& title, const TQStrin
int Widgets::textBox(TQWidget *parent, int width, int height, const TQString& title, const TQString& file)
{
-// KTextBox dlg(parent, 0, TRUE, width, height, file);
+// KTextBox dlg(parent, 0, true, width, height, file);
KDialogBase dlg( parent, 0, true, title, KDialogBase::Ok, KDialogBase::Ok );
tdeApp->setTopWidget( &dlg );
KTextEdit *edit = new KTextEdit( dlg.makeVBoxMainWidget() );
- edit->setReadOnly(TRUE);
+ edit->setReadOnly(true);
TQFile f(file);
if (!f.open(IO_ReadOnly))
@@ -116,7 +116,7 @@ int Widgets::textBox(TQWidget *parent, int width, int height, const TQString& ti
int Widgets::textInputBox(TQWidget *parent, int width, int height, const TQString& title, const TQStringList& args, TQCString &result)
{
-// KTextBox dlg(parent, 0, TRUE, width, height, file);
+// KTextBox dlg(parent, 0, true, width, height, file);
KDialogBase dlg( parent, 0, true, title, KDialogBase::Ok, KDialogBase::Ok );
tdeApp->setTopWidget( &dlg );
@@ -129,7 +129,7 @@ int Widgets::textInputBox(TQWidget *parent, int width, int height, const TQStrin
}
KTextEdit *edit = new KTextEdit( vbox );
- edit->setReadOnly(FALSE);
+ edit->setReadOnly(false);
edit->setTextFormat( TQt::PlainText );
edit->setFocus();
@@ -214,7 +214,7 @@ bool Widgets::checkList(TQWidget *parent, const TQString& title, const TQString&
}
table.insertStringList(entries);
- table.setMultiSelection(TRUE);
+ table.setMultiSelection(true);
table.setCurrentItem(0); // This is to circumvent a Qt bug
for (unsigned int i=0; i+2<args.count(); i += 3) {