diff options
Diffstat (limited to 'kmail/mailsourceviewer.cpp')
-rw-r--r-- | kmail/mailsourceviewer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmail/mailsourceviewer.cpp b/kmail/mailsourceviewer.cpp index ac77b7dd4..0cfa11bb3 100644 --- a/kmail/mailsourceviewer.cpp +++ b/kmail/mailsourceviewer.cpp @@ -38,28 +38,28 @@ #include <kapplication.h> #include <kwin.h> -#include <qregexp.h> -#include <qaccel.h> +#include <tqregexp.h> +#include <tqaccel.h> namespace KMail { -int MailSourceHighlighter::highlightParagraph( const QString& text, int ) { - QRegExp regexp( "^([\\w-]+:\\s)" ); +int MailSourceHighlighter::highlightParagraph( const TQString& text, int ) { + TQRegExp regexp( "^([\\w-]+:\\s)" ); if( regexp.search( text ) != -1 ) { - QFont font = textEdit()->currentFont(); + TQFont font = textEdit()->currentFont(); font.setBold( true ); setFormat( 0, regexp.matchedLength(), font ); } return 0; } -MailSourceViewer::MailSourceViewer( QWidget *parent, const char *name ) +MailSourceViewer::MailSourceViewer( TQWidget *parent, const char *name ) : KTextBrowser( parent, name ), mSourceHighLighter( 0 ) { setWFlags( WDestructiveClose ); - QAccel *accel = new QAccel( this, "browser close-accel" ); - accel->connectItem( accel->insertItem( Qt::Key_Escape ), this , SLOT( close() )); - accel->connectItem( accel->insertItem( Qt::Key_W+CTRL ), this , SLOT( close() )); + TQAccel *accel = new TQAccel( this, "browser close-accel" ); + accel->connectItem( accel->insertItem( Qt::Key_Escape ), this , TQT_SLOT( close() )); + accel->connectItem( accel->insertItem( Qt::Key_W+CTRL ), this , TQT_SLOT( close() )); setWordWrap( KTextBrowser::NoWrap ); KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); } @@ -69,7 +69,7 @@ MailSourceViewer::~MailSourceViewer() delete mSourceHighLighter; mSourceHighLighter = 0; } -void MailSourceViewer::setText( const QString& text ) +void MailSourceViewer::setText( const TQString& text ) { delete mSourceHighLighter; mSourceHighLighter = 0; if ( text.length() > 500000 ) { |