summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tests/kurlrequestertest.cpp
blob: 0e4851cfb4779d03cfdf0cefb34a533537f2a23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <kapplication.h>
#include <keditlistbox.h>
#include <kurlrequester.h>
#include <kurlrequesterdlg.h>

int main( int argc, char **argv )
{
    TDEApplication app( argc, argv, "kurlrequestertest" );
    KURL url = KURLRequesterDlg::getURL( "ftp://ftp.kde.org" );
    tqDebug( "Selected url: %s", url.url().latin1());

    KURLRequester *req = new KURLRequester();
    KEditListBox *el = new KEditListBox( TQString::fromLatin1("Test"), req->customEditor() );
    el->show();
    return app.exec();
}