diff options
Diffstat (limited to 'doc/html/canvas-chart-example.html')
| -rw-r--r-- | doc/html/canvas-chart-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index 8a9a531fd..f3527145e 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -181,7 +181,7 @@ public: ~ChartForm(); int chartType() { return m_chartType; } - void setChanged( bool changed = TRUE ) { m_changed = changed; } + void setChanged( bool changed = true ) { m_changed = changed; } void drawElements(); <a href="ntqpopupmenu.html">TQPopupMenu</a> *optionsMenu; // Why public? See canvasview.cpp @@ -341,23 +341,23 @@ const <a href="ntqstring.html">TQString</a> APP_KEY = "/Chart/"; <a href="qactiongroup.html">TQActionGroup</a> *chartGroup = new <a href="qactiongroup.html">TQActionGroup</a>( this ); // Connected later -<a name="x2874"></a> chartGroup-><a href="qactiongroup.html#setExclusive">setExclusive</a>( TRUE ); +<a name="x2874"></a> chartGroup-><a href="qactiongroup.html#setExclusive">setExclusive</a>( true ); optionsPieChartAction = new <a href="ntqaction.html">TQAction</a>( "Pie Chart", TQPixmap( options_piechart ), "&Pie Chart", CTRL+Key_I, chartGroup, "pie chart" ); -<a name="x2872"></a> optionsPieChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); +<a name="x2872"></a> optionsPieChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( true ); optionsHorizontalBarChartAction = new <a href="ntqaction.html">TQAction</a>( "Horizontal Bar Chart", TQPixmap( options_horizontalbarchart ), "&Horizontal Bar Chart", CTRL+Key_H, chartGroup, "horizontal bar chart" ); - optionsHorizontalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( true ); optionsVerticalBarChartAction = new <a href="ntqaction.html">TQAction</a>( "Vertical Bar Chart", TQPixmap( options_verticalbarchart ), "&Vertical Bar Chart", CTRL+Key_V, chartGroup, "Vertical bar chart" ); - optionsVerticalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsVerticalBarChartAction-><a href="ntqaction.html#setToggleAction">setToggleAction</a>( true ); optionsSetFontAction = new <a href="ntqaction.html">TQAction</a>( @@ -498,7 +498,7 @@ void <a name="f597"></a>ChartForm::init() { <a href="ntqwidget.html#setCaption">setCaption</a>( "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 ); @@ -638,13 +638,13 @@ bool <a name="f605"></a>ChartForm::okToClear() break; case 1: // Cancel default: - return FALSE; + return false; case 2: // Abandon break; } } - return TRUE; + return true; } @@ -670,7 +670,7 @@ void <a name="f607"></a>ChartForm::optionsSetData() { SetDataForm *setDataForm = new SetDataForm( &m_elements, m_decimalPlaces, this ); <a name="x2877"></a> if ( setDataForm-><a href="ntqdialog.html#exec">exec</a>() ) { - m_changed = TRUE; + m_changed = true; drawElements(); } delete setDataForm; @@ -682,13 +682,13 @@ void <a name="f608"></a>ChartForm::setChartType( ChartType chartType ) m_chartType = chartType; switch ( m_chartType ) { case PIE: -<a name="x2871"></a> optionsPieChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); +<a name="x2871"></a> optionsPieChartAction-><a href="ntqaction.html#setOn">setOn</a>( true ); break; case VERTICAL_BAR: - optionsVerticalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); + optionsVerticalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( true ); break; case HORIZONTAL_BAR: - optionsHorizontalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="ntqaction.html#setOn">setOn</a>( true ); break; } } @@ -728,13 +728,13 @@ void <a name="f611"></a>ChartForm::optionsSetOptions() optionsForm-><a href="ntqwidget.html#setFont">setFont</a>( 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 ); |
