mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 19:02:48 +00:00
27 lines
804 B
C++
27 lines
804 B
C++
![]() |
#include <kapplication.h>
|
||
|
#include <kcmdlineargs.h>
|
||
|
#include <kurlrequester.h>
|
||
|
#include <kurlrequesterdialog.h>
|
||
|
|
||
|
int main( int argc, char **argv )
|
||
|
{
|
||
|
KCmdLineArgs::init(argc, argv, "kurlrequestertest", 0, ki18n("kurlrequestertest"), "0", ki18n("test app"));
|
||
|
KApplication app;
|
||
|
app.setQuitOnLastWindowClosed(false);
|
||
|
|
||
|
KUrl url = KUrlRequesterDialog::getUrl( "ftp://ftp.kde.org" );
|
||
|
qDebug( "Selected url: %s", url.url().toLatin1().constData());
|
||
|
|
||
|
KUrlRequester *req = new KUrlRequester();
|
||
|
KEditListWidget *el = new KEditListWidget( req->customEditor() );
|
||
|
el->setWindowTitle( QLatin1String("Test") );
|
||
|
el->show();
|
||
|
|
||
|
KUrlRequester *req1 = new KUrlRequester();
|
||
|
req1->fileDialog();
|
||
|
req1->setWindowTitle("AAAAAAAAAAAA");
|
||
|
req1->show();
|
||
|
|
||
|
return app.exec();
|
||
|
}
|