Skip to content

Commit

Permalink
Don't use TRUE/FALSE in cpp code.. (no longer defined in Qt5.)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson authored and jyavenard committed Mar 8, 2013
1 parent 338939b commit 59a3904
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mythtv/libs/libmyth/mythwizard.cpp
Expand Up @@ -59,8 +59,8 @@ class MythWizardPrivate
struct Page {
Page( QWidget * widget, const QString & title ):
w( widget ), t( title ),
backEnabled( TRUE ), nextEnabled( TRUE ), finishEnabled( FALSE ),
appropriate( TRUE )
backEnabled( true ), nextEnabled( true ), finishEnabled( false ),
appropriate( true )
{}
QWidget * w;
QString t;
Expand Down Expand Up @@ -125,7 +125,7 @@ MythWizard::MythWizard(MythMainWindow *parent, const char *name)
d->nextButton->setText( tr( "&Next >" ) );
d->finishButton->setText( tr( "&Finish" ) );

d->nextButton->setDefault( TRUE );
d->nextButton->setDefault( true );

connect( d->backButton, SIGNAL(clicked()),
this, SLOT(back()) );
Expand Down Expand Up @@ -217,7 +217,7 @@ void MythWizard::showPage( QWidget * page )
if ( p ) {
int i;
for( i = 0; i < (int)d->pages.size() && d->pages[i] != p; i++ );
bool notFirst( FALSE );
bool notFirst( false );

if (i)
{
Expand All @@ -229,7 +229,7 @@ void MythWizard::showPage( QWidget * page )
}
}
setBackEnabled( notFirst );
setNextEnabled( TRUE );
setNextEnabled( true );
d->ws->setCurrentWidget(page);
d->current = p;
}
Expand All @@ -240,7 +240,7 @@ void MythWizard::showPage( QWidget * page )

if (indexOf(page) == pageCount()-1) {
// last page
finishButton()->setEnabled(TRUE);
finishButton()->setEnabled(true);
finishButton()->setFocus();
} else {
nextButton()->setFocus();
Expand Down Expand Up @@ -337,7 +337,7 @@ void MythWizard::setFinishEnabled( QWidget * page, bool enable )
bool MythWizard::appropriate( QWidget * page ) const
{
MythWizardPrivate::Page * p = d->page( page );
return p ? p->appropriate : TRUE;
return p ? p->appropriate : true;
}

void MythWizard::setAppropriate( QWidget * page, bool appropriate )
Expand All @@ -354,7 +354,7 @@ void MythWizard::updateButtons()

int i;
for( i = 0; i < (int)d->pages.size() && d->pages[i] != d->current; i++ );
bool notFirst( FALSE );
bool notFirst( false );
if ( i ) {
i--;
while( ( i >= 0 ) && !notFirst ) {
Expand Down

0 comments on commit 59a3904

Please sign in to comment.