File: kurlnavigatortest_gui.cpp

package info (click to toggle)
kf6-kio 6.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 38,084 kB
  • sloc: cpp: 102,370; xml: 519; ansic: 215; python: 200; ruby: 60; sh: 21; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
    This file is part of the KDE libraries
    SPDX-FileCopyrightText: 2015 David Edmundson <davidedmundson@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#include <KFilePlacesModel>
#include <KUrlNavigator>
#include <QApplication>
#include <QDir>
#include <QUrl>

int main(int argc, char **argv)
{
    QApplication::setApplicationName(QStringLiteral("kurlnavigatortest"));
    QApplication app(argc, argv);

    KUrlNavigator urlNavigator(new KFilePlacesModel, QUrl::fromLocalFile(QDir::homePath()), nullptr);
    urlNavigator.show();

    return app.exec();
}