summaryrefslogtreecommitdiffstats
path: root/libtdepim/komposer/plugins/default/defaulteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/komposer/plugins/default/defaulteditor.cpp')
-rw-r--r--libtdepim/komposer/plugins/default/defaulteditor.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libtdepim/komposer/plugins/default/defaulteditor.cpp b/libtdepim/komposer/plugins/default/defaulteditor.cpp
index 27018ce5a..91dda85c3 100644
--- a/libtdepim/komposer/plugins/default/defaulteditor.cpp
+++ b/libtdepim/komposer/plugins/default/defaulteditor.cpp
@@ -39,7 +39,7 @@
#include <kreplacedialog.h>
#include <kreplace.h>
-#include <tqtextedit.h>
+#include <textedit.h>
#include <tqwidget.h>
typedef KGenericFactory<DefaultEditor> DefaultEditorFactory;
@@ -87,7 +87,7 @@ DefaultEditor::changeSignature( const TQString &sig )
TQString text = m_textEdit->text();
int sigStart = text.findRev( "-- " );
- TQString sigText = TQString( "-- \n%1" ).tqarg( sig );
+ TQString sigText = TQString( "-- \n%1" ).arg( sig );
text.replace( sigStart, text.length(), sigText );
}
@@ -202,10 +202,10 @@ DefaultEditor::createActions( KActionCollection *ac )
connect( m_actionAlignJustify, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(setAlignJustify(bool)) );
- m_actionAlignLeft->setExclusiveGroup( "tqalignment" );
- m_actionAlignCenter->setExclusiveGroup( "tqalignment" );
- m_actionAlignRight->setExclusiveGroup( "tqalignment" );
- m_actionAlignJustify->setExclusiveGroup( "tqalignment" );
+ m_actionAlignLeft->setExclusiveGroup( "alignment" );
+ m_actionAlignCenter->setExclusiveGroup( "alignment" );
+ m_actionAlignRight->setExclusiveGroup( "alignment" );
+ m_actionAlignJustify->setExclusiveGroup( "alignment" );
//
// Tools
@@ -244,7 +244,7 @@ DefaultEditor::updateCharFmt()
void
DefaultEditor::updateAligment()
{
- int align = m_textEdit->tqalignment();
+ int align = m_textEdit->alignment();
switch ( align ) {
case AlignRight:
@@ -288,28 +288,28 @@ void
DefaultEditor::setAlignLeft( bool yes )
{
if ( yes )
- m_textEdit->tqsetAlignment( AlignLeft );
+ m_textEdit->setAlignment( AlignLeft );
}
void
DefaultEditor::setAlignRight( bool yes )
{
if ( yes )
- m_textEdit->tqsetAlignment( AlignRight );
+ m_textEdit->setAlignment( AlignRight );
}
void
DefaultEditor::setAlignCenter( bool yes )
{
if ( yes )
- m_textEdit->tqsetAlignment( AlignCenter );
+ m_textEdit->setAlignment( AlignCenter );
}
void
DefaultEditor::setAlignJustify( bool yes )
{
if ( yes )
- m_textEdit->tqsetAlignment( AlignJustify );
+ m_textEdit->setAlignment( AlignJustify );
}
//