summaryrefslogtreecommitdiffstats
path: root/kio/kfile/tests/kdirselectdialogtest.cpp
blob: e2eb52f1bc07c98da6a6c75cd01cfad4289499a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <kapplication.h>
#include <kdirselectdialog.h>
#include <kmessagebox.h>
#include <kurl.h>

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

    KURL u = KDirSelectDialog::selectDirectory( (argc >= 1) ? argv[1] : QString::null );
    if ( u.isValid() )
        KMessageBox::information( 0L,
                                QString::fromLatin1("You selected the url: %1")
                                .arg( u.prettyURL() ), "Selected URL" );

    return 0;
}