KBookmarkDialog Class
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders. More...
- Header:
#include <KBookmarkDialog> - CMake:
find_package(KF6 REQUIRED COMPONENTS Bookmarks)
target_link_libraries(mytarget PRIVATE KF6::BookmarksWidgets)
List of all members, including inherited members
Public Functions
- KBookmarkDialog(KBookmarkManager *manager, QWidget *parent = nullptr)
- KBookmark addBookmark(const QString &title, const QUrl &url, const QString &icon, KBookmark parent = KBookmark())
- KBookmarkGroup addBookmarks(const QList<KBookmarkOwner::FutureBookmark> &list, const QString &name = QString(), KBookmarkGroup parent = KBookmarkGroup())
- KBookmarkGroup createNewFolder(const QString &name, KBookmark parent = KBookmark())
- KBookmark editBookmark(const KBookmark &bm)
- KBookmarkGroup selectFolder(KBookmark start = KBookmark())
Public Slots
Detailed Description
It can be used to show dialogs for common tasks with bookmarks.
It is used by KBookmarkMenu to show a dialog for "Properties", "Add Bookmark" and "Create New Folder". If you want to customize those dialogs, derive from KBookmarkOwner and reimplement bookmarkDialog(), return a KBookmarkDialog subclass and reimplement initLayout(), aboutToShow() and save().
Member Function Documentation
KBookmarkDialog::KBookmarkDialog(KBookmarkManager *manager, QWidget *parent = nullptr)
Creates a KBookmarkDialog instance
KBookmark KBookmarkDialog::addBookmark(const QString &title, const QUrl &url, const QString &icon, KBookmark parent = KBookmark())
Shows a "Add Bookmark" dialog
Note: this updates the bookmark and calls KBookmarkManager::emitChanged
KBookmarkGroup KBookmarkDialog::addBookmarks(const QList<KBookmarkOwner::FutureBookmark> &list, const QString &name = QString(), KBookmarkGroup parent = KBookmarkGroup())
Creates a folder from a list of bookmarks
Note: this updates the bookmark and calls KBookmarkManager::emitChanged
KBookmarkGroup KBookmarkDialog::createNewFolder(const QString &name, KBookmark parent = KBookmark())
Shows a dialog to create a new folder.
KBookmark KBookmarkDialog::editBookmark(const KBookmark &bm)
Shows a properties dialog
Note: this updates the bookmark and calls KBookmarkManager::emitChanged
[protected slot] void KBookmarkDialog::newFolderButton()
KBookmarkGroup KBookmarkDialog::selectFolder(KBookmark start = KBookmark())
Shows a dialog to select a folder.