cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
23 lines
747 B
C++
23 lines
747 B
C++
/*
|
|
SPDX-FileCopyrightText: 2013 David Faure <faure+bluesystems@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#include <QApplication>
|
|
#include <QPushButton>
|
|
#include <QStandardPaths>
|
|
|
|
#include <kbookmarkdialog.h>
|
|
#include <kbookmarkmanager.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
const QString bookmarksFile = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/konqueror/bookmarks.xml");
|
|
KBookmarkManager manager(bookmarksFile);
|
|
KBookmarkDialog dlg(&manager);
|
|
dlg.addBookmark(QStringLiteral("KDE"), QUrl(QStringLiteral("http://www.kde.org")), QStringLiteral("www")); // calls exec()
|
|
return 0;
|
|
}
|