summaryrefslogtreecommitdiffstats
path: root/kio/kfile/tests/kurlrequestertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kio/kfile/tests/kurlrequestertest.cpp')
-rw-r--r--kio/kfile/tests/kurlrequestertest.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/kio/kfile/tests/kurlrequestertest.cpp b/kio/kfile/tests/kurlrequestertest.cpp
new file mode 100644
index 000000000..5601f4922
--- /dev/null
+++ b/kio/kfile/tests/kurlrequestertest.cpp
@@ -0,0 +1,16 @@
+#include <kapplication.h>
+#include <keditlistbox.h>
+#include <kurlrequester.h>
+#include <kurlrequesterdlg.h>
+
+int main( int argc, char **argv )
+{
+ KApplication app( argc, argv, "kurlrequestertest" );
+ KURL url = KURLRequesterDlg::getURL( "ftp://ftp.kde.org" );
+ qDebug( "Selected url: %s", url.url().latin1());
+
+ KURLRequester *req = new KURLRequester();
+ KEditListBox *el = new KEditListBox( QString::fromLatin1("Test"), req->customEditor() );
+ el->show();
+ return app.exec();
+}