diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /libk9copy/k9progress.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/k9progress.cpp')
-rw-r--r-- | libk9copy/k9progress.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libk9copy/k9progress.cpp b/libk9copy/k9progress.cpp index d2c46ac..9a8bb95 100644 --- a/libk9copy/k9progress.cpp +++ b/libk9copy/k9progress.cpp @@ -13,22 +13,22 @@ #include "k9progress.h" #include <kprogress.h> -#include <qlabel.h> -#include <qapplication.h> -#include <qeventloop.h> -#include <qimage.h> -#include <qpainter.h> +#include <tqlabel.h> +#include <tqapplication.h> +#include <tqeventloop.h> +#include <tqimage.h> +#include <tqpainter.h> #include <kstandarddirs.h> -#include <qmovie.h> -#include <qlayout.h> +#include <tqmovie.h> +#include <tqlayout.h> -k9Progress::k9Progress(QWidget* parent, const char* name,const QStringList &args) - : Progress(parent,name,0) { - m_process=new k9Process(this,0); +k9Progress::k9Progress(TQWidget* tqparent, const char* name,const TQStringList &args) + : Progress(tqparent,name,0) { + m_process=new k9Process(TQT_TQOBJECT(this),0); m_wimage=new k9DrawImage(image,0); - QGridLayout *l=new QGridLayout(image,1,1); + TQGridLayout *l=new TQGridLayout(image,1,1); l->addWidget(m_wimage,0,0); @@ -40,16 +40,16 @@ k9Progress::~k9Progress() { } -void k9Progress::setElapsed(const QString _text) { +void k9Progress::setElapsed(const TQString _text) { lblElapsed->setText(_text); } -void k9Progress::setTitle(const QString _text) { +void k9Progress::setTitle(const TQString _text) { lblTitle->setText(_text); } -void k9Progress::setLabelText(const QString _text) { +void k9Progress::setLabelText(const TQString _text) { LabelText->setText(_text); } @@ -90,18 +90,18 @@ k9Process* k9Progress::getProcess() const { /*$SPECIALIZATION$*/ -void k9Progress::setImage(QString _fileName) { +void k9Progress::setImage(TQString _fileName) { m_wimage->setImage(_fileName); } -void k9Progress::setImage(const QImage &_image) { +void k9Progress::setImage(const TQImage &_image) { m_wimage->setImage(_image); } -void k9Progress::setMovie(QString _fileName) { +void k9Progress::setMovie(TQString _fileName) { image->setPaletteBackgroundColor(this->paletteBackgroundColor()); - QMovie mv(_fileName,2048); + TQMovie mv(_fileName,2048); mv.setBackgroundColor(this->paletteBackgroundColor()); image->setMovie(mv); m_wimage->hide(); |