summaryrefslogtreecommitdiffstats
path: root/libkdepim/komposer/plugins/default/defaulteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/komposer/plugins/default/defaulteditor.cpp')
-rw-r--r--libkdepim/komposer/plugins/default/defaulteditor.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdepim/komposer/plugins/default/defaulteditor.cpp b/libkdepim/komposer/plugins/default/defaulteditor.cpp
index b8abf17be..56f97d223 100644
--- a/libkdepim/komposer/plugins/default/defaulteditor.cpp
+++ b/libkdepim/komposer/plugins/default/defaulteditor.cpp
@@ -36,8 +36,8 @@
#include <kprinter.h>
#include <kfinddialog.h>
#include <kfind.h>
-#include <kreplacedialog.h>
-#include <kreplace.h>
+#include <ktqreplacedialog.h>
+#include <ktqreplace.h>
#include <tqtextedit.h>
#include <tqwidget.h>
@@ -89,7 +89,7 @@ DefaultEditor::changeSignature( const TQString &sig )
int sigStart = text.findRev( "-- " );
TQString sigText = TQString( "-- \n%1" ).arg( sig );
- text.replace( sigStart, text.length(), sigText );
+ text.tqreplace( sigStart, text.length(), sigText );
}
void
@@ -202,10 +202,10 @@ DefaultEditor::createActions( KActionCollection *ac )
connect( m_actionAlignJustify, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(setAlignJustify(bool)) );
- m_actionAlignLeft->setExclusiveGroup( "alignment" );
- m_actionAlignCenter->setExclusiveGroup( "alignment" );
- m_actionAlignRight->setExclusiveGroup( "alignment" );
- m_actionAlignJustify->setExclusiveGroup( "alignment" );
+ m_actionAlignLeft->setExclusiveGroup( "tqalignment" );
+ m_actionAlignCenter->setExclusiveGroup( "tqalignment" );
+ m_actionAlignRight->setExclusiveGroup( "tqalignment" );
+ m_actionAlignJustify->setExclusiveGroup( "tqalignment" );
//
// Tools
@@ -244,7 +244,7 @@ DefaultEditor::updateCharFmt()
void
DefaultEditor::updateAligment()
{
- int align = m_textEdit->alignment();
+ int align = m_textEdit->tqalignment();
switch ( align ) {
case AlignRight:
@@ -288,28 +288,28 @@ void
DefaultEditor::setAlignLeft( bool yes )
{
if ( yes )
- m_textEdit->setAlignment( AlignLeft );
+ m_textEdit->tqsetAlignment( AlignLeft );
}
void
DefaultEditor::setAlignRight( bool yes )
{
if ( yes )
- m_textEdit->setAlignment( AlignRight );
+ m_textEdit->tqsetAlignment( AlignRight );
}
void
DefaultEditor::setAlignCenter( bool yes )
{
if ( yes )
- m_textEdit->setAlignment( AlignCenter );
+ m_textEdit->tqsetAlignment( AlignCenter );
}
void
DefaultEditor::setAlignJustify( bool yes )
{
if ( yes )
- m_textEdit->setAlignment( AlignJustify );
+ m_textEdit->tqsetAlignment( AlignJustify );
}
//