diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
commit | 5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch) | |
tree | 9b70e8be47a390f8f4d56ead812ab0c9dad88709 /kio/tests/previewtest.cpp | |
parent | c17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff) | |
download | tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kio/tests/previewtest.cpp')
-rw-r--r-- | kio/tests/previewtest.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/kio/tests/previewtest.cpp b/kio/tests/previewtest.cpp deleted file mode 100644 index 62f6c3d62..000000000 --- a/kio/tests/previewtest.cpp +++ /dev/null @@ -1,64 +0,0 @@ - -#include <tqlabel.h> -#include <tqlayout.h> -#include <tqpushbutton.h> - -#include <kapplication.h> -#include <kdebug.h> -#include <klineedit.h> - -#include <kio/previewjob.h> - -#include "previewtest.moc" - -PreviewTest::PreviewTest() - :TQWidget() -{ - 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); - TQPushButton *btn = new TQPushButton("Generate", this); - connect(btn, TQT_SIGNAL(clicked()), TQT_SLOT(slotGenerate())); - layout->addWidget(btn, 0, 1); - m_preview = new TQLabel(this); - m_preview->setMinimumSize(400, 300); - layout->addMultiCellWidget(m_preview, 1, 1, 0, 1); -} - -void PreviewTest::slotGenerate() -{ - KURL::List urls; - urls.append(m_url->text()); - TDEIO::PreviewJob *job = TDEIO::filePreview(urls, m_preview->width(), m_preview->height(), true, 48); - connect(job, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotResult(TDEIO::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(TDEIO::Job*) -{ - kdDebug() << "PreviewTest::slotResult(...)" << endl; -} - -void PreviewTest::slotPreview(const KFileItem *, const TQPixmap &pix) -{ - kdDebug() << "PreviewTest::slotPreview()" << endl; - m_preview->setPixmap(pix); -} - -void PreviewTest::slotFailed() -{ - kdDebug() << "PreviewTest::slotFailed()" << endl; - m_preview->setText("failed"); -} - -int main(int argc, char **argv) -{ - TDEApplication app(argc, argv, "previewtest"); - PreviewTest *w = new PreviewTest; - w->show(); - app.setMainWidget(w); - return app.exec(); -} - |