summaryrefslogtreecommitdiffstats
path: root/knode/knsourceviewwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/knsourceviewwindow.cpp')
-rw-r--r--knode/knsourceviewwindow.cpp20
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 );
}