Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/33/head
Michele Calgaro 3 months ago
parent 7393502aef
commit 2dd4d59787
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);

@ -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;

@ -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

@ -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.

@ -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());
}
}

@ -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;

@ -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;

@ -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()

@ -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"));

Loading…
Cancel
Save