diff options
Diffstat (limited to 'lib/kofficeui/KoPictureFilePreview.cpp')
-rw-r--r-- | lib/kofficeui/KoPictureFilePreview.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/kofficeui/KoPictureFilePreview.cpp b/lib/kofficeui/KoPictureFilePreview.cpp index 7f27b940..fade4e9a 100644 --- a/lib/kofficeui/KoPictureFilePreview.cpp +++ b/lib/kofficeui/KoPictureFilePreview.cpp @@ -23,11 +23,11 @@ #include <kdialog.h> #include <klocale.h> #include <kurl.h> -#include <qbitmap.h> -#include <qlayout.h> -#include <qfileinfo.h> -#include <qpainter.h> -#include <qscrollview.h> +#include <tqbitmap.h> +#include <tqlayout.h> +#include <tqfileinfo.h> +#include <tqpainter.h> +#include <tqscrollview.h> #include <kdebug.h> @@ -38,11 +38,11 @@ * It is a scrollview, to have scrollbars if the image is big, * and it supports both pixmaps and cliparts */ -class KoPictureFilePreviewWidget : public QScrollView +class KoPictureFilePreviewWidget : public TQScrollView { public: - KoPictureFilePreviewWidget( QWidget *parent ) - : QScrollView( parent ) { viewport()->setBackgroundMode( PaletteBase ); } + KoPictureFilePreviewWidget( TQWidget *tqparent ) + : TQScrollView( tqparent ) { viewport()->setBackgroundMode( PaletteBase ); } bool setPicture( const KURL& url ) { @@ -65,33 +65,33 @@ public: m_size = picture.getOriginalSize(); m_picture = picture; resizeContents( m_size.width(), m_size.height() ); - repaintContents(); + tqrepaintContents(); return true; } void setNullPicture(void) { m_picture=KoPicture(); - m_size=QSize(); + m_size=TQSize(); } - void drawContents( QPainter *p, int, int, int, int ) + void drawContents( TQPainter *p, int, int, int, int ) { - p->setBackgroundColor( Qt::white ); + p->setBackgroundColor( TQt::white ); // Be sure that the background is white (for transparency) - p->fillRect(0, 0, m_size.width(), m_size.height(), QBrush( Qt::white )); + p->fillRect(0, 0, m_size.width(), m_size.height(), TQBrush( TQt::white )); m_picture.draw( *p, 0 ,0, m_size.width(), m_size.height()); } private: KoPicture m_picture; - QSize m_size; + TQSize m_size; }; -KoPictureFilePreview::KoPictureFilePreview( QWidget *parent ) - : KPreviewWidgetBase( parent ) +KoPictureFilePreview::KoPictureFilePreview( TQWidget *tqparent ) + : KPreviewWidgetBase( tqparent ) { - QVBoxLayout *vb = new QVBoxLayout( this, KDialog::marginHint() ); + TQVBoxLayout *vb = new TQVBoxLayout( this, KDialog::marginHint() ); m_widget = new KoPictureFilePreviewWidget( this ); vb->addWidget( m_widget, 1 ); } @@ -106,14 +106,14 @@ void KoPictureFilePreview::clearPreview() m_widget->setNullPicture(); } -QString KoPictureFilePreview::clipartPattern() +TQString KoPictureFilePreview::clipartPattern() { return i18n( "*.svg *.wmf *.qpic|Clipart (*.svg *.wmf *.qpic)" ); } -QStringList KoPictureFilePreview::clipartMimeTypes() +TQStringList KoPictureFilePreview::clipartMimeTypes() { - QStringList lst; + TQStringList lst; lst << "image/svg+xml"; lst << "image/x-wmf"; lst << "image/x-vnd.trolltech.qpicture"; |