diff options
author | Michele Calgaro <[email protected]> | 2024-01-04 10:30:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-04 12:36:03 +0900 |
commit | c0332621bc998c9786f4841e86a62b7711fe4abf (patch) | |
tree | 38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /kformula/kformula_view.cpp | |
parent | 6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff) | |
download | koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.tar.gz koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kformula/kformula_view.cpp')
-rw-r--r-- | kformula/kformula_view.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kformula/kformula_view.cpp b/kformula/kformula_view.cpp index baa244a4..1b8a2091 100644 --- a/kformula/kformula_view.cpp +++ b/kformula/kformula_view.cpp @@ -76,14 +76,14 @@ KFormulaPartView::KFormulaPartView(KFormulaDoc* _doc, TQWidget* _parent, const c KFormula::Document* document = m_pDoc->getDocument(); // copy&paste - cutAction = KStdAction::cut(document->wrapper(), TQT_SLOT(cut()), actionCollection()); - copyAction = KStdAction::copy(document->wrapper(), TQT_SLOT(copy()), actionCollection()); - pasteAction = KStdAction::paste(document->wrapper(), TQT_SLOT(paste()), actionCollection()); + cutAction = KStdAction::cut(document->wrapper(), TQ_SLOT(cut()), actionCollection()); + copyAction = KStdAction::copy(document->wrapper(), TQ_SLOT(copy()), actionCollection()); + pasteAction = KStdAction::paste(document->wrapper(), TQ_SLOT(paste()), actionCollection()); cutAction->setEnabled(false); copyAction->setEnabled(false); // tip of the day - KStdAction::tipOfDay( this, TQT_SLOT( slotShowTip() ), actionCollection() ); + KStdAction::tipOfDay( this, TQ_SLOT( slotShowTip() ), actionCollection() ); // elements addBracketAction = document->wrapper()->getAddBracketAction(); @@ -101,55 +101,55 @@ KFormulaPartView::KFormulaPartView(KFormulaDoc* _doc, TQWidget* _parent, const c addGenericLowerAction = document->wrapper()->getAddGenericLowerAction(); removeEnclosingAction = document->wrapper()->getRemoveEnclosingAction(); - (void) KStdAction::selectAll(formulaWidget, TQT_SLOT(slotSelectAll()), actionCollection()); + (void) KStdAction::selectAll(formulaWidget, TQ_SLOT(slotSelectAll()), actionCollection()); //------------------------ Settings menu - KStdAction::preferences( this, TQT_SLOT(configure()), actionCollection(), "configure" ); + KStdAction::preferences( this, TQ_SLOT(configure()), actionCollection(), "configure" ); // font stuff // TDEFontAction* actionElement_Text_Font = new TDEFontAction(i18n( "Font Family" ),0, // actionCollection(),"textfont"); -// connect( actionElement_Text_Font, TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( fontSelected( const TQString& ) ) ); +// connect( actionElement_Text_Font, TQ_SIGNAL( activated( const TQString& ) ), this, TQ_SLOT( fontSelected( const TQString& ) ) ); TDEFontSizeAction* actionTextSize = new TDEFontSizeAction(i18n( "Size" ),0, actionCollection(),"formula_textsize"); actionTextSize->setFontSize( m_pDoc->getFormula()->fontSize() ); - connect( actionTextSize, TQT_SIGNAL( fontSizeChanged( int ) ), this, TQT_SLOT( sizeSelected( int ) ) ); - connect( formula, TQT_SIGNAL( baseSizeChanged( int ) ), actionTextSize, TQT_SLOT( setFontSize( int ) ) ); + connect( actionTextSize, TQ_SIGNAL( fontSizeChanged( int ) ), this, TQ_SLOT( sizeSelected( int ) ) ); + connect( formula, TQ_SIGNAL( baseSizeChanged( int ) ), actionTextSize, TQ_SLOT( setFontSize( int ) ) ); // TDEToggleAction* actionElement_Text_Bold = new TDEToggleAction(i18n( "Bold" ), // "bold", // 0, // actionCollection(),"textbold"); -// connect( actionElement_Text_Bold, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( bold( bool ) ) ); +// connect( actionElement_Text_Bold, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( bold( bool ) ) ); // TDEToggleAction* actionElement_Text_Italic = new TDEToggleAction(i18n( "Italic" ), // "italic", // 0, // actionCollection(),"textitalic"); -// connect( actionElement_Text_Italic, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( italic( bool ) ) ); +// connect( actionElement_Text_Italic, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( italic( bool ) ) ); // TDEToggleAction* actionElement_Text_Under = new TDEToggleAction(i18n( "Underlined" ), // "underl", // 0, // actionCollection(),"textunder"); -// connect(actionElement_Text_Under, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( underline( bool ) ) ); +// connect(actionElement_Text_Under, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( underline( bool ) ) ); formulaStringAction = new TDEAction( i18n( "Edit Formula String..." ), 0, - this, TQT_SLOT( formulaString() ), + this, TQ_SLOT( formulaString() ), actionCollection(), "formula_formulastring" ); // notify on cursor change - connect(formulaWidget, TQT_SIGNAL(cursorChanged(bool, bool)), - this, TQT_SLOT(cursorChanged(bool, bool))); + connect(formulaWidget, TQ_SIGNAL(cursorChanged(bool, bool)), + this, TQ_SLOT(cursorChanged(bool, bool))); - connect( formula, TQT_SIGNAL( statusMsg( const TQString& ) ), - this, TQT_SLOT( slotActionStatusText( const TQString& ) ) ); + connect( formula, TQ_SIGNAL( statusMsg( const TQString& ) ), + this, TQ_SLOT( slotActionStatusText( const TQString& ) ) ); if ( !_doc->isEmbedded() && first_window ) { - TQTimer::singleShot( 200, this, TQT_SLOT(slotShowTipOnStart()) ); + TQTimer::singleShot( 200, this, TQ_SLOT(slotShowTipOnStart()) ); first_window = false; } } |