From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/tests/previewtest.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kio/tests/previewtest.cpp') diff --git a/kio/tests/previewtest.cpp b/kio/tests/previewtest.cpp index 66fa9398e..f2b740224 100644 --- a/kio/tests/previewtest.cpp +++ b/kio/tests/previewtest.cpp @@ -1,7 +1,7 @@ -#include -#include -#include +#include +#include +#include #include #include @@ -12,16 +12,16 @@ #include "previewtest.moc" PreviewTest::PreviewTest() - :QWidget() + :TQWidget() { - QGridLayout *layout = new QGridLayout(this, 2, 2); + TQGridLayout *layout = new TQGridLayout(this, 2, 2); m_url = new KLineEdit(this); m_url->setText("/home/malte/gore_bush.jpg"); layout->addWidget(m_url, 0, 0); - QPushButton *btn = new QPushButton("Generate", this); - connect(btn, SIGNAL(clicked()), SLOT(slotGenerate())); + TQPushButton *btn = new TQPushButton("Generate", this); + connect(btn, TQT_SIGNAL(clicked()), TQT_SLOT(slotGenerate())); layout->addWidget(btn, 0, 1); - m_preview = new QLabel(this); + m_preview = new TQLabel(this); m_preview->setMinimumSize(400, 300); layout->addMultiCellWidget(m_preview, 1, 1, 0, 1); } @@ -31,9 +31,9 @@ void PreviewTest::slotGenerate() KURL::List urls; urls.append(m_url->text()); KIO::PreviewJob *job = KIO::filePreview(urls, m_preview->width(), m_preview->height(), true, 48); - connect(job, SIGNAL(result(KIO::Job*)), SLOT(slotResult(KIO::Job*))); - connect(job, SIGNAL(gotPreview(const KFileItem *, const QPixmap &)), SLOT(slotPreview(const KFileItem *, const QPixmap &))); - connect(job, SIGNAL(failed(const KFileItem *)), SLOT(slotFailed())); + connect(job, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotResult(KIO::Job*))); + connect(job, TQT_SIGNAL(gotPreview(const KFileItem *, const TQPixmap &)), TQT_SLOT(slotPreview(const KFileItem *, const TQPixmap &))); + connect(job, TQT_SIGNAL(failed(const KFileItem *)), TQT_SLOT(slotFailed())); } void PreviewTest::slotResult(KIO::Job*) @@ -41,7 +41,7 @@ void PreviewTest::slotResult(KIO::Job*) kdDebug() << "PreviewTest::slotResult(...)" << endl; } -void PreviewTest::slotPreview(const KFileItem *, const QPixmap &pix) +void PreviewTest::slotPreview(const KFileItem *, const TQPixmap &pix) { kdDebug() << "PreviewTest::slotPreview()" << endl; m_preview->setPixmap(pix); -- cgit v1.2.1