diff options
Diffstat (limited to 'kspread/dialogs')
-rw-r--r-- | kspread/dialogs/kspread_dlg_formula.cpp | 10 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_goalseek.cpp | 6 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_paperlayout.cpp | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/kspread/dialogs/kspread_dlg_formula.cpp b/kspread/dialogs/kspread_dlg_formula.cpp index 8e53c525..89406321 100644 --- a/kspread/dialogs/kspread_dlg_formula.cpp +++ b/kspread/dialogs/kspread_dlg_formula.cpp @@ -271,15 +271,15 @@ void FormulaDialog::slotSearchText(const TQString &_text) bool FormulaDialog::eventFilter( TQObject* obj, TQEvent* ev ) { - if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(firstElement) && ev->type() == TQEvent::FocusIn ) + if ( obj == firstElement && ev->type() == TQEvent::FocusIn ) m_focus = firstElement; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(secondElement) && ev->type() == TQEvent::FocusIn ) + else if ( obj == secondElement && ev->type() == TQEvent::FocusIn ) m_focus = secondElement; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(thirdElement) && ev->type() == TQEvent::FocusIn ) + else if ( obj == thirdElement && ev->type() == TQEvent::FocusIn ) m_focus = thirdElement; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(fourElement) && ev->type() == TQEvent::FocusIn ) + else if ( obj == fourElement && ev->type() == TQEvent::FocusIn ) m_focus = fourElement; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(fiveElement) && ev->type() == TQEvent::FocusIn ) + else if ( obj == fiveElement && ev->type() == TQEvent::FocusIn ) m_focus = fiveElement; else return FALSE; diff --git a/kspread/dialogs/kspread_dlg_goalseek.cpp b/kspread/dialogs/kspread_dlg_goalseek.cpp index b45525ad..1a2e5d59 100644 --- a/kspread/dialogs/kspread_dlg_goalseek.cpp +++ b/kspread/dialogs/kspread_dlg_goalseek.cpp @@ -197,11 +197,11 @@ GoalSeekDialog::~GoalSeekDialog() bool GoalSeekDialog::eventFilter( TQObject* obj, TQEvent* ev ) { - if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_targetValueEdit) && ev->type() == TQEvent::FocusIn ) + if ( obj == m_targetValueEdit && ev->type() == TQEvent::FocusIn ) m_focus = m_targetValueEdit; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_targetEdit) && ev->type() == TQEvent::FocusIn ) + else if ( obj == m_targetEdit && ev->type() == TQEvent::FocusIn ) m_focus = m_targetEdit; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_sourceEdit) && ev->type() == TQEvent::FocusIn ) + else if ( obj == m_sourceEdit && ev->type() == TQEvent::FocusIn ) m_focus = m_sourceEdit; else return FALSE; diff --git a/kspread/dialogs/kspread_dlg_paperlayout.cpp b/kspread/dialogs/kspread_dlg_paperlayout.cpp index 3305963e..bdd65a26 100644 --- a/kspread/dialogs/kspread_dlg_paperlayout.cpp +++ b/kspread/dialogs/kspread_dlg_paperlayout.cpp @@ -538,11 +538,11 @@ void PaperLayout::slotCancel() bool PaperLayout::eventFilter( TQObject* obj, TQEvent* ev ) { - if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(ePrintRange) && ev->type() == TQEvent::FocusIn ) + if ( obj == ePrintRange && ev->type() == TQEvent::FocusIn ) m_focus = ePrintRange; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(eRepeatCols) && ev->type() == TQEvent::FocusIn ) + else if ( obj == eRepeatCols && ev->type() == TQEvent::FocusIn ) m_focus = eRepeatCols; - else if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(eRepeatRows) && ev->type() == TQEvent::FocusIn ) + else if ( obj == eRepeatRows && ev->type() == TQEvent::FocusIn ) m_focus = eRepeatRows; else return false; |