From c811c531ffe77ce9f94db1031a79aa1bea76d94e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 26 Mar 2025 21:02:27 +0900 Subject: [PATCH] Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro (cherry picked from commit 2dd4d59787dcca2aa6682c89b8a02ea392175c39) --- src/gui/dialogs/EventFilterDialog.h | 4 ++-- src/gui/dialogs/TransportDialog.cpp | 4 ++-- src/gui/editors/notation/NoteFont.cpp | 2 +- src/gui/editors/notation/SystemFont.cpp | 4 ++-- src/gui/editors/parameters/RosegardenParameterArea.cpp | 4 ++-- src/gui/kdeext/klearlook.cpp | 2 +- src/gui/studio/AudioPluginOSCGUI.cpp | 2 +- src/gui/studio/TimerCallbackAssistant.cpp | 2 +- src/gui/widgets/ColourTable.cpp | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/gui/dialogs/EventFilterDialog.h b/src/gui/dialogs/EventFilterDialog.h index 2431627..a4e3b47 100644 --- a/src/gui/dialogs/EventFilterDialog.h +++ b/src/gui/dialogs/EventFilterDialog.h @@ -78,7 +78,7 @@ public: filterRange getVelocity(); filterRange getDuration(); - // returns TRUE if the property value falls with in the filterRange + // returns true if the property value falls with in the filterRange bool eventInRange(filterRange foo, long property) { if (foo.first > foo.second) return (property <= foo.second || property >= foo.first); @@ -86,7 +86,7 @@ public: return (property >= foo.first && property <= foo.second); } // Used to do the work of deciding whether to keep or reject an event - // based on the state of the dialog's widgets. Returns TRUE if an event + // based on the state of the dialog's widgets. Returns true if an event // should continue to be selected. This method is the heart of the // EventFilterDialog's public interface. bool keepEvent(Event* const &e); diff --git a/src/gui/dialogs/TransportDialog.cpp b/src/gui/dialogs/TransportDialog.cpp index a75981d..f6be73f 100644 --- a/src/gui/dialogs/TransportDialog.cpp +++ b/src/gui/dialogs/TransportDialog.cpp @@ -211,7 +211,7 @@ TransportDialog::TransportDialog(TQWidget *parent, TQFont localFont(m_transport->OutDisplay->font() ); localFont.setFamily( "lucida" ); - localFont.setBold( TRUE ); + localFont.setBold( true ); m_transport->TempoDisplay->setFont( localFont ); m_transport->TimeSigDisplay->setFont( localFont ); @@ -470,7 +470,7 @@ TransportDialog::displayTime() break; case BarMetronomeMode: - m_clearMetronomeTimer->start(1700, FALSE); + m_clearMetronomeTimer->start(1700, false); m_transport->TimeDisplayLabel->setText("MET"); // DO NOT i18n m_transport->TimeDisplayLabel->show(); break; diff --git a/src/gui/editors/notation/NoteFont.cpp b/src/gui/editors/notation/NoteFont.cpp index 60157ca..091d733 100644 --- a/src/gui/editors/notation/NoteFont.cpp +++ b/src/gui/editors/notation/NoteFont.cpp @@ -78,7 +78,7 @@ NoteFont::NoteFont(std::string fontName, int size) : if (m_blankPixmap == 0) { m_blankPixmap = new TQPixmap(10, 10); - m_blankPixmap->setMask(TQBitmap(10, 10, TRUE)); + m_blankPixmap->setMask(TQBitmap(10, 10, true)); } // Locate our font's pixmap map in the font map, create if necessary diff --git a/src/gui/editors/notation/SystemFont.cpp b/src/gui/editors/notation/SystemFont.cpp index e1eb548..2e271e3 100644 --- a/src/gui/editors/notation/SystemFont.cpp +++ b/src/gui/editors/notation/SystemFont.cpp @@ -135,8 +135,8 @@ qfont: // The TQt documentation says: // // bool TQFontInfo::exactMatch() const - // Returns TRUE if the matched window system font is exactly the - // same as the one specified by the font; otherwise returns FALSE. + // Returns true if the matched window system font is exactly the + // same as the one specified by the font; otherwise returns false. // // My arse. I specify "feta", I get "Verdana", and exactMatch // returns true. Uh huh. diff --git a/src/gui/editors/parameters/RosegardenParameterArea.cpp b/src/gui/editors/parameters/RosegardenParameterArea.cpp index 49e8aef..730cdab 100644 --- a/src/gui/editors/parameters/RosegardenParameterArea.cpp +++ b/src/gui/editors/parameters/RosegardenParameterArea.cpp @@ -213,10 +213,10 @@ void RosegardenParameterArea::moveWidget(TQWidget *old_container, ++index; } if (index < m_parameterBoxes.size()) { - box->reparent(m_groupBoxes[index], 0, TQPoint(0, 0), FALSE); + box->reparent(m_groupBoxes[index], 0, TQPoint(0, 0), false); } } else if (new_container == m_tabBox) { - box->reparent(new_container, 0, TQPoint(0, 0), FALSE); + box->reparent(new_container, 0, TQPoint(0, 0), false); m_tabBox->insertTab(box, box->getShortLabel()); } } diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp index 496ad62..9b57bb4 100644 --- a/src/gui/kdeext/klearlook.cpp +++ b/src/gui/kdeext/klearlook.cpp @@ -1820,7 +1820,7 @@ void KlearlookStyle::drawPrimitive( PrimitiveElement pe, TQPainter *p, const TQS TQColor( flags & Style_MouseOver ? TQColor(cg.background().light( TQTC_HIGHLIGHT_FACTOR )) : cg.background() ) ); - drawLines( p, r, flags & Style_Horizontal, 70, 1, use, 0, TRUE, + drawLines( p, r, flags & Style_Horizontal, 70, 1, use, 0, true, APPEARANCE_LIGHT_GRADIENT == appearance ); } break; diff --git a/src/gui/studio/AudioPluginOSCGUI.cpp b/src/gui/studio/AudioPluginOSCGUI.cpp index f21d3d8..1ece522 100644 --- a/src/gui/studio/AudioPluginOSCGUI.cpp +++ b/src/gui/studio/AudioPluginOSCGUI.cpp @@ -100,7 +100,7 @@ AudioPluginOSCGUI::getGUIFilePath(TQString identifier) } TQDir dir(soInfo.dir()); - TQString fileBase(soInfo.baseName(TRUE)); + TQString fileBase(soInfo.baseName(true)); if (!dir.cd(fileBase)) { RG_DEBUG << "AudioPluginOSCGUI::AudioPluginOSCGUI: No GUI subdir for plugin .so " << soName << endl; diff --git a/src/gui/studio/TimerCallbackAssistant.cpp b/src/gui/studio/TimerCallbackAssistant.cpp index e37c5b6..fabac2d 100644 --- a/src/gui/studio/TimerCallbackAssistant.cpp +++ b/src/gui/studio/TimerCallbackAssistant.cpp @@ -37,7 +37,7 @@ TimerCallbackAssistant::TimerCallbackAssistant(int ms, void (*callback)(void *da { TQTimer *timer = new TQTimer(this); connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotCallback())); - timer->start(ms, FALSE); + timer->start(ms, false); } TimerCallbackAssistant::~TimerCallbackAssistant() diff --git a/src/gui/widgets/ColourTable.cpp b/src/gui/widgets/ColourTable.cpp index 4845b9c..bf8f942 100644 --- a/src/gui/widgets/ColourTable.cpp +++ b/src/gui/widgets/ColourTable.cpp @@ -44,7 +44,7 @@ ColourTable::ColourTable (TQWidget *parent, ColourMap &input, ColourList &list) : TQTable(1, 2, parent, "RColourTable") { - setSorting(FALSE); + setSorting(false); setSelectionMode(TQTable::SingleRow); horizontalHeader()->setLabel(0, i18n("Name")); horizontalHeader()->setLabel(1, i18n("Color"));