diff options
Diffstat (limited to 'kspread/dialogs/kspread_dlg_formula.cpp')
-rw-r--r-- | kspread/dialogs/kspread_dlg_formula.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kspread/dialogs/kspread_dlg_formula.cpp b/kspread/dialogs/kspread_dlg_formula.cpp index 324df02d8..24f90cd74 100644 --- a/kspread/dialogs/kspread_dlg_formula.cpp +++ b/kspread/dialogs/kspread_dlg_formula.cpp @@ -159,7 +159,7 @@ FormulaDialog::FormulaDialog( View* parent, const char* name,const TQString& for grid2->addStretch( 10 ); m_tabwidget->addTab( m_input, i18n("&Parameters") ); - m_tabwidget->setTabEnabled( m_input, FALSE ); + m_tabwidget->setTabEnabled( m_input, false ); m_tabwidget->setCurrentPage( index ); @@ -282,12 +282,12 @@ bool FormulaDialog::eventFilter( TQObject* obj, TQEvent* ev ) else if ( obj == fiveElement && ev->type() == TQEvent::FocusIn ) m_focus = fiveElement; else - return FALSE; + return false; if ( m_focus ) m_pView->canvasWidget()->startChoose(); - return FALSE; + return false; } void FormulaDialog::slotOk() @@ -391,19 +391,19 @@ TQString FormulaDialog::createFormula() if ( !m_desc ) return TQString(); - bool first = TRUE; + bool first = true; int count = m_desc->params(); if(!firstElement->text().isEmpty() && count >= 1 ) { tmp=tmp+createParameter(firstElement->text(), 0 ); - first = FALSE; + first = false; } if(!secondElement->text().isEmpty() && count >= 2 ) { - first = FALSE; + first = false; if ( !first ) tmp=tmp+";"+createParameter(secondElement->text(), 1 ); else @@ -411,7 +411,7 @@ TQString FormulaDialog::createFormula() } if(!thirdElement->text().isEmpty() && count >= 3 ) { - first = FALSE; + first = false; if ( !first ) tmp=tmp+";"+createParameter(thirdElement->text(), 2 ); else @@ -419,7 +419,7 @@ TQString FormulaDialog::createFormula() } if(!fourElement->text().isEmpty() && count >= 4 ) { - first = FALSE; + first = false; if ( !first ) tmp=tmp+";"+createParameter(fourElement->text(), 3 ); else @@ -427,7 +427,7 @@ TQString FormulaDialog::createFormula() } if(!fiveElement->text().isEmpty() && count >= 5 ) { - first = FALSE; + first = false; if ( !first ) tmp=tmp+";"+createParameter(fiveElement->text(), 4 ); else @@ -570,7 +570,7 @@ void FormulaDialog::slotDoubleClicked( TQListBoxItem* item ) // Dont change order of these function calls due to a bug in TQt 2.2 m_browser->setText( m_desc->toTQML() ); - m_tabwidget->setTabEnabled( m_input, TRUE ); + m_tabwidget->setTabEnabled( m_input, true ); m_tabwidget->setCurrentPage( 1 ); // @@ -678,7 +678,7 @@ void FormulaDialog::slotSelected( const TQString& function ) } if( functions->currentItem() !=- 1 ) - selectFunction->setEnabled( TRUE ); + selectFunction->setEnabled( true ); // Lock refresh_result = false; @@ -693,7 +693,7 @@ void FormulaDialog::slotSelected( const TQString& function ) m_focus=0; m_tabwidget->setCurrentPage( 0 ); - m_tabwidget->setTabEnabled( m_input, FALSE ); + m_tabwidget->setTabEnabled( m_input, false ); // Unlock refresh_result=true; |