Pages
API Documentation
On this page

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

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.