summaryrefslogtreecommitdiffstats
path: root/examples/chart/chartform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chart/chartform.cpp')
-rw-r--r--examples/chart/chartform.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/chart/chartform.cpp b/examples/chart/chartform.cpp
index d585c4f78..98ac96f6b 100644
--- a/examples/chart/chartform.cpp
+++ b/examples/chart/chartform.cpp
@@ -95,23 +95,23 @@ ChartForm::ChartForm( const TQString& filename )
TQActionGroup *chartGroup = new TQActionGroup( this ); // Connected later
- chartGroup->setExclusive( TRUE );
+ chartGroup->setExclusive( true );
optionsPieChartAction = new TQAction(
"Pie Chart", TQPixmap( options_piechart ),
"&Pie Chart", CTRL+Key_I, chartGroup, "pie chart" );
- optionsPieChartAction->setToggleAction( TRUE );
+ optionsPieChartAction->setToggleAction( true );
optionsHorizontalBarChartAction = new TQAction(
"Horizontal Bar Chart", TQPixmap( options_horizontalbarchart ),
"&Horizontal Bar Chart", CTRL+Key_H, chartGroup,
"horizontal bar chart" );
- optionsHorizontalBarChartAction->setToggleAction( TRUE );
+ optionsHorizontalBarChartAction->setToggleAction( true );
optionsVerticalBarChartAction = new TQAction(
"Vertical Bar Chart", TQPixmap( options_verticalbarchart ),
"&Vertical Bar Chart", CTRL+Key_V, chartGroup, "Vertical bar chart" );
- optionsVerticalBarChartAction->setToggleAction( TRUE );
+ optionsVerticalBarChartAction->setToggleAction( true );
optionsSetFontAction = new TQAction(
@@ -252,7 +252,7 @@ void ChartForm::init()
{
setCaption( "Chart" );
m_filename = TQString::null;
- m_changed = FALSE;
+ m_changed = false;
m_elements[0] = Element( Element::INVALID, red );
m_elements[1] = Element( Element::INVALID, cyan );
@@ -392,13 +392,13 @@ bool ChartForm::okToClear()
break;
case 1: // Cancel
default:
- return FALSE;
+ return false;
case 2: // Abandon
break;
}
}
- return TRUE;
+ return true;
}
@@ -424,7 +424,7 @@ void ChartForm::optionsSetData()
{
SetDataForm *setDataForm = new SetDataForm( &m_elements, m_decimalPlaces, this );
if ( setDataForm->exec() ) {
- m_changed = TRUE;
+ m_changed = true;
drawElements();
}
delete setDataForm;
@@ -436,13 +436,13 @@ void ChartForm::setChartType( ChartType chartType )
m_chartType = chartType;
switch ( m_chartType ) {
case PIE:
- optionsPieChartAction->setOn( TRUE );
+ optionsPieChartAction->setOn( true );
break;
case VERTICAL_BAR:
- optionsVerticalBarChartAction->setOn( TRUE );
+ optionsVerticalBarChartAction->setOn( true );
break;
case HORIZONTAL_BAR:
- optionsHorizontalBarChartAction->setOn( TRUE );
+ optionsHorizontalBarChartAction->setOn( true );
break;
}
}
@@ -482,13 +482,13 @@ void ChartForm::optionsSetOptions()
optionsForm->setFont( m_font );
switch ( m_addValues ) {
case NO:
- optionsForm->noRadioButton->setChecked( TRUE );
+ optionsForm->noRadioButton->setChecked( true );
break;
case YES:
- optionsForm->yesRadioButton->setChecked( TRUE );
+ optionsForm->yesRadioButton->setChecked( true );
break;
case AS_PERCENTAGE:
- optionsForm->asPercentageRadioButton->setChecked( TRUE );
+ optionsForm->asPercentageRadioButton->setChecked( true );
break;
}
optionsForm->decimalPlacesSpinBox->setValue( m_decimalPlaces );