From 5159cd2beb2e87806a5b54e9991b7895285c9d3e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:04:16 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- tdeio/tdefile/tests/kfdtest.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tdeio/tdefile/tests/kfdtest.cpp (limited to 'tdeio/tdefile/tests/kfdtest.cpp') diff --git a/tdeio/tdefile/tests/kfdtest.cpp b/tdeio/tdefile/tests/kfdtest.cpp new file mode 100644 index 000000000..60c8b6d70 --- /dev/null +++ b/tdeio/tdefile/tests/kfdtest.cpp @@ -0,0 +1,34 @@ +#include "kfdtest.h" + +#include +#include +#include +#include +#include + +KFDTest::KFDTest( const TQString& startDir, TQObject *parent, const char *name ) + : TQObject( parent, name ), + m_startDir( startDir ) +{ + TQTimer::singleShot( 1000, this, TQT_SLOT( doit() )); +} + +void KFDTest::doit() +{ + KFileDialog *dlg = new KFileDialog( m_startDir, TQString::null, 0L, + "file dialog", true ); + dlg->setMode( KFile::File); + dlg->setOperationMode( KFileDialog::Saving ); + TQStringList filter; + filter << "all/allfiles" << "text/plain"; + dlg->setMimeFilter( filter, "all/allfiles" ); + + if ( dlg->exec() == KDialog::Accepted ) + { + KMessageBox::information(0, TQString::fromLatin1("You selected the file: %1").arg( dlg->selectedURL().prettyURL() )); + } + +// tqApp->quit(); +} + +#include "kfdtest.moc" -- cgit v1.2.1