mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
26 lines
805 B
C++
26 lines
805 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.gnu.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();
|
|
}
|