summaryrefslogtreecommitdiffstats
path: root/knotes/knoteedit.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:33:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:43:48 +0900
commit3b3f9ec8f31978030c17309fae48335bea5c1587 (patch)
tree0b493383a1501860371aacd792ec6fc08d595824 /knotes/knoteedit.cpp
parent99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff)
downloadtdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz
tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knotes/knoteedit.cpp')
-rw-r--r--knotes/knoteedit.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/knotes/knoteedit.cpp b/knotes/knoteedit.cpp
index f03150ba..4ef1274d 100644
--- a/knotes/knoteedit.cpp
+++ b/knotes/knoteedit.cpp
@@ -45,27 +45,27 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
setLinkUnderline( true );
setCheckSpellingEnabled(false);
// create the actions for the RMB menu
- undo = KStdAction::undo( this, TQT_SLOT(undo()), actions );
- redo = KStdAction::redo( this, TQT_SLOT(redo()), actions );
+ undo = KStdAction::undo( this, TQ_SLOT(undo()), actions );
+ redo = KStdAction::redo( this, TQ_SLOT(redo()), actions );
undo->setEnabled( isUndoAvailable() );
redo->setEnabled( isRedoAvailable() );
- m_cut = KStdAction::cut( this, TQT_SLOT(cut()), actions );
- m_copy = KStdAction::copy( this, TQT_SLOT(copy()), actions );
- m_paste = KStdAction::paste( this, TQT_SLOT(paste()), actions );
+ m_cut = KStdAction::cut( this, TQ_SLOT(cut()), actions );
+ m_copy = KStdAction::copy( this, TQ_SLOT(copy()), actions );
+ m_paste = KStdAction::paste( this, TQ_SLOT(paste()), actions );
m_cut->setEnabled( false );
m_copy->setEnabled( false );
m_paste->setEnabled( true );
- connect( this, TQT_SIGNAL(undoAvailable(bool)), this, TQT_SLOT(setEnabledUndo(bool)) );
- connect( this, TQT_SIGNAL(redoAvailable(bool)), this, TQT_SLOT(setEnabledRedo(bool)) );
+ connect( this, TQ_SIGNAL(undoAvailable(bool)), this, TQ_SLOT(setEnabledUndo(bool)) );
+ connect( this, TQ_SIGNAL(redoAvailable(bool)), this, TQ_SLOT(setEnabledRedo(bool)) );
- connect( this, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT( slotCutEnabled( bool ) ) );
- connect( this, TQT_SIGNAL(copyAvailable(bool)), m_copy, TQT_SLOT(setEnabled(bool)) );
+ connect( this, TQ_SIGNAL(copyAvailable(bool)), this, TQ_SLOT( slotCutEnabled( bool ) ) );
+ connect( this, TQ_SIGNAL(copyAvailable(bool)), m_copy, TQ_SLOT(setEnabled(bool)) );
- new TDEAction( KStdGuiItem::clear(), 0, this, TQT_SLOT(clear()), actions, "edit_clear" );
- KStdAction::selectAll( this, TQT_SLOT(selectAll()), actions );
+ new TDEAction( KStdGuiItem::clear(), 0, this, TQ_SLOT(clear()), actions, "edit_clear" );
+ KStdAction::selectAll( this, TQ_SLOT(selectAll()), actions );
// create the actions modifying the text format
m_textBold = new TDEToggleAction( i18n("Bold"), "format-text-bold", CTRL + Key_B, 0, 0,
@@ -77,23 +77,23 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
m_textStrikeOut = new TDEToggleAction( i18n("Strike Out"), "format-text-strikethrough", CTRL + Key_S, 0, 0,
actions, "format_strikeout" );
- connect( m_textBold, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setBold(bool)) );
- connect( m_textItalic, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setItalic(bool)) );
- connect( m_textUnderline, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setUnderline(bool)) );
- connect( m_textStrikeOut, TQT_SIGNAL(toggled(bool)), TQT_SLOT(textStrikeOut(bool)) );
+ connect( m_textBold, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setBold(bool)) );
+ connect( m_textItalic, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setItalic(bool)) );
+ connect( m_textUnderline, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setUnderline(bool)) );
+ connect( m_textStrikeOut, TQ_SIGNAL(toggled(bool)), TQ_SLOT(textStrikeOut(bool)) );
m_textAlignLeft = new TDEToggleAction( i18n("Align Left"), "format-text-direction-ltr", ALT + Key_L,
- this, TQT_SLOT(textAlignLeft()),
+ this, TQ_SLOT(textAlignLeft()),
actions, "format_alignleft" );
m_textAlignLeft->setChecked( true ); // just a dummy, will be updated later
m_textAlignCenter = new TDEToggleAction( i18n("Align Center"), "text_center", ALT + Key_C,
- this, TQT_SLOT(textAlignCenter()),
+ this, TQ_SLOT(textAlignCenter()),
actions, "format_aligncenter" );
m_textAlignRight = new TDEToggleAction( i18n("Align Right"), "format-text-direction-rtl", ALT + Key_R,
- this, TQT_SLOT(textAlignRight()),
+ this, TQ_SLOT(textAlignRight()),
actions, "format_alignright" );
m_textAlignBlock = new TDEToggleAction( i18n("Align Block"), "text_block", ALT + Key_B,
- this, TQT_SLOT(textAlignBlock()),
+ this, TQ_SLOT(textAlignBlock()),
actions, "format_alignblock" );
m_textAlignLeft->setExclusiveGroup( "align" );
@@ -102,16 +102,16 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
m_textAlignBlock->setExclusiveGroup( "align" );
m_textList = new TDEToggleAction( i18n("List"), "enum_list", 0,
- this, TQT_SLOT(textList()),
+ this, TQ_SLOT(textList()),
actions, "format_list" );
m_textList->setExclusiveGroup( "style" );
m_textSuper = new TDEToggleAction( i18n("Superscript"), "text_super", 0,
- this, TQT_SLOT(textSuperScript()),
+ this, TQ_SLOT(textSuperScript()),
actions, "format_super" );
m_textSub = new TDEToggleAction( i18n("Subscript"), "text_sub", 0,
- this, TQT_SLOT(textSubScript()),
+ this, TQ_SLOT(textSubScript()),
actions, "format_sub" );
m_textSuper->setExclusiveGroup( "valign" );
@@ -120,38 +120,38 @@ KNoteEdit::KNoteEdit( TDEActionCollection *actions, TQWidget *parent, const char
// There is no easy possibility to implement text indenting with TQTextEdit
//
// m_textIncreaseIndent = new TDEAction( i18n("Increase Indent"), "format_increaseindent", 0,
-// this, TQT_SLOT(textIncreaseIndent()),
+// this, TQ_SLOT(textIncreaseIndent()),
// actions, "format_increaseindent" );
//
// m_textDecreaseIndent = new TDEAction( i18n("Decrease Indent"), "format_decreaseindent", 0,
-// this, TQT_SLOT(textDecreaseIndent()),
+// this, TQ_SLOT(textDecreaseIndent()),
// actions, "format_decreaseindent" );
TQPixmap pix( ICON_SIZE, ICON_SIZE );
pix.fill( black ); // just a dummy, gets updated before widget is shown
m_textColor = new TDEAction( i18n("Text Color..."), pix, 0, this,
- TQT_SLOT(textColor()), actions, "format_color" );
+ TQ_SLOT(textColor()), actions, "format_color" );
m_textFont = new TDEFontAction( i18n("Text Font"), "text", KKey(),
actions, "format_font" );
- connect( m_textFont, TQT_SIGNAL(activated( const TQString & )),
- this, TQT_SLOT(setFamily( const TQString & )) );
+ connect( m_textFont, TQ_SIGNAL(activated( const TQString & )),
+ this, TQ_SLOT(setFamily( const TQString & )) );
m_textSize = new TDEFontSizeAction( i18n("Text Size"), KKey(),
actions, "format_size" );
- connect( m_textSize, TQT_SIGNAL(fontSizeChanged( int )),
- this, TQT_SLOT(setPointSize( int )) );
+ connect( m_textSize, TQ_SIGNAL(fontSizeChanged( int )),
+ this, TQ_SLOT(setPointSize( int )) );
// TQTextEdit connections
- connect( this, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()) );
- connect( this, TQT_SIGNAL(currentFontChanged( const TQFont & )),
- this, TQT_SLOT(fontChanged( const TQFont & )) );
- connect( this, TQT_SIGNAL(currentColorChanged( const TQColor & )),
- this, TQT_SLOT(colorChanged( const TQColor & )) );
- connect( this, TQT_SIGNAL(currentAlignmentChanged( int )),
- this, TQT_SLOT(alignmentChanged( int )) );
- connect( this, TQT_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )),
- this, TQT_SLOT(verticalAlignmentChanged( VerticalAlignment )) );
+ connect( this, TQ_SIGNAL(returnPressed()), TQ_SLOT(slotReturnPressed()) );
+ connect( this, TQ_SIGNAL(currentFontChanged( const TQFont & )),
+ this, TQ_SLOT(fontChanged( const TQFont & )) );
+ connect( this, TQ_SIGNAL(currentColorChanged( const TQColor & )),
+ this, TQ_SLOT(colorChanged( const TQColor & )) );
+ connect( this, TQ_SIGNAL(currentAlignmentChanged( int )),
+ this, TQ_SLOT(alignmentChanged( int )) );
+ connect( this, TQ_SIGNAL(currentVerticalAlignmentChanged( VerticalAlignment )),
+ this, TQ_SLOT(verticalAlignmentChanged( VerticalAlignment )) );
}
KNoteEdit::~KNoteEdit()
@@ -541,13 +541,13 @@ TQPopupMenu *KNoteEdit::createPopupMenu( const TQPoint &pos )
menu->insertSeparator();
id = menu->insertItem( SmallIconSet( "tools-check-spelling" ), i18n( "Check Spelling..." ),
- this, TQT_SLOT( checkSpelling() ) );
+ this, TQ_SLOT( checkSpelling() ) );
if( text().isEmpty() )
menu->setItemEnabled( id, false );
menu->insertSeparator();
- id=menu->insertItem(i18n("Allow Tabulations"),this,TQT_SLOT(slotAllowTab()));
+ id=menu->insertItem(i18n("Allow Tabulations"),this,TQ_SLOT(slotAllowTab()));
menu->setItemChecked(id, !tabChangesFocus());
}