diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/mailsourceviewer.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) { |