summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-31 15:41:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 10:23:00 +0900
commitda891dbf84798e00b5fbd226c44f01c7b82306ea (patch)
tree078f9ac2b6f0efe0adce5d8397accbdc1a7c3ff8
parentdc7edbd117b3d257b1ce18f61dfdd1cc69495935 (diff)
downloadqalculate-tde-r14.1.x.tar.gz
qalculate-tde-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/falser14.1.5r14.1.4r14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 06e568f8805131a86cf68d2fd27e882c0cbb854d)
-rw-r--r--src/kqalculate.cpp4
-rw-r--r--src/qalculateeditdatasetdialog.cpp6
-rw-r--r--src/qalculateinsertfunctiondialog.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/kqalculate.cpp b/src/kqalculate.cpp
index d14dd97..65c8137 100644
--- a/src/kqalculate.cpp
+++ b/src/kqalculate.cpp
@@ -6626,10 +6626,10 @@ void QalculateStyleSheet::scaleFont(TQFont &font, int logicalSize) const {
int baseSize = font.pointSize();
- bool pixel = FALSE;
+ bool pixel = false;
if(baseSize == -1){
baseSize = font.pixelSize();
- pixel = TRUE;
+ pixel = true;
}
float factor = baseSize;
diff --git a/src/qalculateeditdatasetdialog.cpp b/src/qalculateeditdatasetdialog.cpp
index 8ec9887..aa98420 100644
--- a/src/qalculateeditdatasetdialog.cpp
+++ b/src/qalculateeditdatasetdialog.cpp
@@ -326,9 +326,9 @@ DataSet *QalculateEditDataSetDialog::editDataSet(DataSet *ds) {
copyrightEdit->clear();
nameEdit->setReadOnly(false);
actionButton(Ok)->setEnabled(true);
- newPropertyButton->setEnabled(TRUE);
- editPropertyButton->setEnabled(FALSE);
- deletePropertyButton->setEnabled(FALSE);
+ newPropertyButton->setEnabled(true);
+ editPropertyButton->setEnabled(false);
+ deletePropertyButton->setEnabled(false);
if(ds) {
//fill in original paramaters
set_name_label_and_entry(ds, nameEdit, namesLabel);
diff --git a/src/qalculateinsertfunctiondialog.cpp b/src/qalculateinsertfunctiondialog.cpp
index 0d8a048..b6be78d 100644
--- a/src/qalculateinsertfunctiondialog.cpp
+++ b/src/qalculateinsertfunctiondialog.cpp
@@ -148,7 +148,7 @@ QalculateInsertFunctionDialog::QalculateInsertFunctionDialog(MathFunction *f, TQ
entry[i] = bg;
bg->setFrameStyle(TQFrame::Plain | TQFrame::NoFrame);
bg->setMargin(0);
- bg->setRadioButtonExclusive(TRUE);
+ bg->setRadioButtonExclusive(true);
bg->insert(new TQRadioButton(i18n("True"), bg), 1);
bg->insert(new TQRadioButton(i18n("False"), bg), 0);
TQString str = selected_text.stripWhiteSpace();