summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tests/kdirselectdialogtest.cpp
blob: 71adee9a8829b4e01aaf8d2ac21df84067ebd7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <tdeapplication.h>
#include <kdirselectdialog.h>
#include <tdemessagebox.h>
#include <kurl.h>

int main( int argc, char **argv )
{
    TDEApplication app(argc, argv, "kdirselectdialogtest", true);

    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;
}