summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/chatwindow/krichtexteditpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/chatwindow/krichtexteditpart.cpp')
-rw-r--r--kopete/kopete/chatwindow/krichtexteditpart.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kopete/kopete/chatwindow/krichtexteditpart.cpp b/kopete/kopete/chatwindow/krichtexteditpart.cpp
index 152570a8..4d8a0f8d 100644
--- a/kopete/kopete/chatwindow/krichtexteditpart.cpp
+++ b/kopete/kopete/chatwindow/krichtexteditpart.cpp
@@ -122,51 +122,51 @@ TDEAboutData *KopeteRichTextEditPart::createAboutData()
return aboutData;
}
-void KopeteRichTextEditPart::createActions( KActionCollection *ac )
+void KopeteRichTextEditPart::createActions( TDEActionCollection *ac )
{
- enableRichText = new KToggleAction(i18n("Enable &Rich Text"), "pencil", 0,
+ enableRichText = new TDEToggleAction(i18n("Enable &Rich Text"), "pencil", 0,
ac, "enableRichText" );
enableRichText->setCheckedState(i18n("Disable &Rich Text"));
connect( enableRichText, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slotSetRichTextEnabled(bool) ) );
- checkSpelling = new KAction( i18n("Check &Spelling"), "spellcheck", 0,
+ checkSpelling = new TDEAction( i18n("Check &Spelling"), "spellcheck", 0,
TQT_TQOBJECT(editor), TQT_SLOT( checkSpelling() ), ac, "check_spelling" );
//Fg Color
- actionFgColor = new KAction( i18n("Text &Color..."), "color_line", 0,
+ actionFgColor = new TDEAction( i18n("Text &Color..."), "color_line", 0,
this, TQT_SLOT( setFgColor() ),
ac, "format_color" );
//BG Color
- actionBgColor = new KAction( i18n("Background Co&lor..."), "color_fill", 0,
+ actionBgColor = new TDEAction( i18n("Background Co&lor..."), "color_fill", 0,
this, TQT_SLOT( setBgColor() ),
ac, "format_bgcolor" );
//Font Family
- action_font = new KFontAction( i18n("&Font"), 0,
+ action_font = new TDEFontAction( i18n("&Font"), 0,
ac, "format_font" );
connect( action_font, TQT_SIGNAL( activated( const TQString & ) ),
this, TQT_SLOT( setFont( const TQString & ) ) );
//Font Size
- action_font_size = new KFontSizeAction( i18n("Font &Size"), 0,
+ action_font_size = new TDEFontSizeAction( i18n("Font &Size"), 0,
ac, "format_font_size" );
connect( action_font_size, TQT_SIGNAL( fontSizeChanged(int) ),
this, TQT_SLOT( setFontSize(int) ) );
//Formatting
- action_bold = new KToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B,
+ action_bold = new TDEToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B,
ac, "format_bold" );
connect( action_bold, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setBold(bool) ) );
- action_italic = new KToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I,
+ action_italic = new TDEToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I,
ac, "format_italic" );
connect( action_italic, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setItalic(bool) ) );
- action_underline = new KToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U,
+ action_underline = new TDEToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U,
ac, "format_underline" );
connect( action_underline, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setUnderline(bool) ) );
@@ -180,22 +180,22 @@ void KopeteRichTextEditPart::createActions( KActionCollection *ac )
updateFont();
//Alignment
- action_align_left = new KToggleAction( i18n("Align &Left"), "text_left", 0,
+ action_align_left = new TDEToggleAction( i18n("Align &Left"), "text_left", 0,
ac, "format_align_left" );
connect( action_align_left, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignLeft(bool) ) );
- action_align_center = new KToggleAction( i18n("Align &Center"), "text_center", 0,
+ action_align_center = new TDEToggleAction( i18n("Align &Center"), "text_center", 0,
ac, "format_align_center" );
connect( action_align_center, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignCenter(bool) ) );
- action_align_right = new KToggleAction( i18n("Align &Right"), "text_right", 0,
+ action_align_right = new TDEToggleAction( i18n("Align &Right"), "text_right", 0,
ac, "format_align_right" );
connect( action_align_right, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignRight(bool) ) );
- action_align_justify = new KToggleAction( i18n("&Justify"), "text_block", 0,
+ action_align_justify = new TDEToggleAction( i18n("&Justify"), "text_block", 0,
ac, "format_align_justify" );
connect( action_align_justify, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignJustify(bool) ) );
@@ -448,7 +448,7 @@ void KopeteRichTextEditPart::setFontSize( int size )
void KopeteRichTextEditPart::setFont()
{
- KFontDialog::getFont(mFont, false, editor);
+ TDEFontDialog::getFont(mFont, false, editor);
setFont(mFont);
writeConfig();
}