diff options
Diffstat (limited to 'kounavail/kounavail.cc')
-rw-r--r-- | kounavail/kounavail.cc | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kounavail/kounavail.cc b/kounavail/kounavail.cc index a704eea4..21af38c7 100644 --- a/kounavail/kounavail.cc +++ b/kounavail/kounavail.cc @@ -19,8 +19,8 @@ #include "kounavail.h" -#include <qpainter.h> -#include <qiconset.h> +#include <tqpainter.h> +#include <tqiconset.h> #include <kaction.h> #include <kinstance.h> #include <kstdaction.h> @@ -28,26 +28,26 @@ #include <kaboutdata.h> #include <kdebug.h> #include <kglobalsettings.h> -#include <qapplication.h> +#include <tqapplication.h> -KoUnavailPart::KoUnavailPart( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name ) - : KoDocument( parentWidget, widgetName, parent, name, false /*singleViewMode*/ ) +KoUnavailPart::KoUnavailPart( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name ) + : KoDocument( tqparentWidget, widgetName, tqparent, name, false /*singleViewMode*/ ) { setReadWrite( false ); } -KoView* KoUnavailPart::createViewInstance( QWidget* parent, const char* name ) +KoView* KoUnavailPart::createViewInstance( TQWidget* tqparent, const char* name ) { - return new KoUnavailView( this, parent, name ); + return new KoUnavailView( this, tqparent, name ); } -bool KoUnavailPart::loadOasis( const QDomDocument& doc, KoOasisStyles&, const QDomDocument&, KoStore* ) +bool KoUnavailPart::loadOasis( const TQDomDocument& doc, KoOasisStyles&, const TQDomDocument&, KoStore* ) { m_doc = doc; return true; } -bool KoUnavailPart::loadXML( QIODevice *, const QDomDocument &doc ) +bool KoUnavailPart::loadXML( TQIODevice *, const TQDomDocument &doc ) { // Simply keep a copy of the whole document ;) m_doc = doc; @@ -62,7 +62,7 @@ bool KoUnavailPart::saveFile() return true; } -QDomDocument KoUnavailPart::saveXML() +TQDomDocument KoUnavailPart::saveXML() { kdDebug() << "KoUnavailPart::saveXML" << endl; return m_doc; @@ -75,17 +75,17 @@ bool KoUnavailPart::saveOasis(KoStore*, KoXmlWriter*) return false; } -void KoUnavailPart::setMimeType( const QCString& mime ) +void KoUnavailPart::setMimeType( const TQCString& mime ) { kdDebug() << "KoUnavailPart::setMimeType " << mime << endl; m_mimetype = mime; } -void KoUnavailPart::paintContent( QPainter& painter, const QRect& rect, bool /*transparent*/, +void KoUnavailPart::paintContent( TQPainter& painter, const TQRect& rect, bool /*transparent*/, double /*zoomX*/, double /*zoomY*/ ) { painter.save(); - painter.setPen( QApplication::palette().color( QPalette::Active, QColorGroup::Text ) ); + painter.setPen( TQApplication::palette().color( TQPalette::Active, TQColorGroup::Text ) ); // Need to draw only the document rectangle described in the parameter rect. int left = rect.left() / 20; int right = rect.right() / 20 + 1; @@ -97,24 +97,24 @@ void KoUnavailPart::paintContent( QPainter& painter, const QRect& rect, bool /*t for( int y = left; y < right; ++y ) painter.drawLine( left * 20, y * 20, right * 20, y * 20 ); - QFont defaultFont = KGlobalSettings::generalFont(); + TQFont defaultFont = KGlobalSettings::generalFont(); defaultFont.setPointSize( 16 ); // ### painter.setFont( defaultFont ); //painter.drawText( 20, 20, m_reason ); - painter.drawText( rect, Qt::AlignCenter | Qt::WordBreak, m_reason ); + painter.drawText( rect, TQt::AlignCenter | TQt::WordBreak, m_reason ); painter.restore(); } -KoUnavailView::KoUnavailView( KoUnavailPart* part, QWidget* parent, const char* name ) - : KoView( part, parent, name ) +KoUnavailView::KoUnavailView( KoUnavailPart* part, TQWidget* tqparent, const char* name ) + : KoView( part, tqparent, name ) { setInstance( KoUnavailFactory::global() ); //setXMLFile( "kounavail.rc" ); } -void KoUnavailView::paintEvent( QPaintEvent* ev ) +void KoUnavailView::paintEvent( TQPaintEvent* ev ) { - QPainter painter; + TQPainter painter; painter.begin( this ); // ### TODO: Scaling @@ -130,8 +130,8 @@ K_EXPORT_COMPONENT_FACTORY( libkounavailpart, KoUnavailFactory ) KInstance* KoUnavailFactory::s_global = 0L; KAboutData* KoUnavailFactory::s_aboutData = 0L; -KoUnavailFactory::KoUnavailFactory( QObject* parent, const char* name ) - : KoFactory( parent, name ) +KoUnavailFactory::KoUnavailFactory( TQObject* tqparent, const char* name ) + : KoFactory( tqparent, name ) { global(); } @@ -144,9 +144,9 @@ KoUnavailFactory::~KoUnavailFactory() s_global = 0L; } -KParts::Part* KoUnavailFactory::createPartObject( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, const char*, const QStringList & ) +KParts::Part* KoUnavailFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name, const char*, const TQStringList & ) { - return new KoUnavailPart( parentWidget, widgetName, parent, name ); + return new KoUnavailPart( tqparentWidget, widgetName, tqparent, name ); } KAboutData* KoUnavailFactory::aboutData() |