You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
523 B
18 lines
523 B
#include <tdeapplication.h>
|
|
#include <kdirselectdialog.h>
|
|
#include <tdemessagebox.h>
|
|
#include <kurl.h>
|
|
|
|
int main( int argc, char **argv )
|
|
{
|
|
TDEApplication app(argc, argv, "kdirselectdialogtest");
|
|
|
|
KURL u = KDirSelectDialog::selectDirectory( (argc >= 1) ? argv[1] : TQString::null );
|
|
if ( u.isValid() )
|
|
KMessageBox::information( 0L,
|
|
TQString::fromLatin1("You selected the url: %1")
|
|
.arg( u.prettyURL() ), "Selected URL" );
|
|
|
|
return 0;
|
|
}
|