File indexing completed on 2024-07-21 09:34:33

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2015 David Edmundson <davidedmundson@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include <KFilePlacesModel>
0009 #include <KUrlNavigator>
0010 #include <QApplication>
0011 #include <QDir>
0012 #include <QUrl>
0013 
0014 int main(int argc, char **argv)
0015 {
0016     QApplication::setApplicationName(QStringLiteral("kurlnavigatortest"));
0017     QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
0018     QApplication app(argc, argv);
0019 
0020     KUrlNavigator urlNavigator(new KFilePlacesModel, QUrl::fromLocalFile(QDir::homePath()), nullptr);
0021     urlNavigator.show();
0022 
0023     return app.exec();
0024 }