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 /knode/knsourceviewwindow.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 'knode/knsourceviewwindow.cpp')
-rw-r--r-- | knode/knsourceviewwindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/knode/knsourceviewwindow.cpp b/knode/knsourceviewwindow.cpp index ad0eb1cf5..f0b2b75d8 100644 --- a/knode/knsourceviewwindow.cpp +++ b/knode/knsourceviewwindow.cpp @@ -12,7 +12,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qaccel.h> +#include <tqaccel.h> #include <kapplication.h> @@ -22,33 +22,33 @@ #include "utilities.h" -KNSourceViewWindow::KNSourceViewWindow( const QString &text ) +KNSourceViewWindow::KNSourceViewWindow( const TQString &text ) : KTextBrowser(0) { setWFlags(WType_TopLevel | WDestructiveClose); - QAccel *accel = new QAccel( this, "browser close-accel" ); - accel->connectItem( accel->insertItem( Qt::Key_Escape ), this , SLOT( close() )); + TQAccel *accel = new TQAccel( this, "browser close-accel" ); + accel->connectItem( accel->insertItem( Qt::Key_Escape ), this , TQT_SLOT( close() )); KNConfig::Appearance *app=knGlobals.configManager()->appearance(); setTextFormat( PlainText ); setCaption(kapp->makeStdCaption(i18n("Article Source"))); - setPaper( QBrush(app->backgroundColor()) ); + setPaper( TQBrush(app->backgroundColor()) ); setFont( app->articleFixedFont() ); setColor( app->textColor() ); setWordWrap( KTextBrowser::NoWrap ); setText( text ); - KNHelper::restoreWindowSize("sourceWindow", this, QSize(500,300)); + KNHelper::restoreWindowSize("sourceWindow", this, TQSize(500,300)); show(); } -void KNSourceViewWindow::setPalette( const QPalette &pal ) +void KNSourceViewWindow::setPalette( const TQPalette &pal ) { - QPalette p = pal; - p.setColor( QColorGroup::Text, knGlobals.configManager()->appearance()->textColor() ); - p.setColor( QColorGroup::Background, knGlobals.configManager()->appearance()->backgroundColor() ); + TQPalette p = pal; + p.setColor( TQColorGroup::Text, knGlobals.configManager()->appearance()->textColor() ); + p.setColor( TQColorGroup::Background, knGlobals.configManager()->appearance()->backgroundColor() ); KTextBrowser::setPalette( p ); } |