KBookmarks
kbookmarkdialog.cpp
88void KBookmarkDialogPrivate::fillGroup(QTreeWidgetItem *parentItem, const KBookmarkGroup &group, const KBookmarkGroup &selectGroup)
177 KGuiItem::assign(d->buttonBox->button(QDialogButtonBox::Ok), KGuiItem(tr("Update", "@action:button")));
198KBookmark KBookmarkDialog::addBookmark(const QString &title, const QUrl &url, const QString &icon, KBookmark parent)
208 KGuiItem::assign(newButton, KGuiItem(tr("&New Folder…", "@action:button"), QStringLiteral("folder-new")));
212 KGuiItem::assign(d->buttonBox->button(QDialogButtonBox::Ok), KGuiItem(tr("Add", "@action:button"), QStringLiteral("bookmark-new")));
234KBookmarkGroup KBookmarkDialog::addBookmarks(const QList<KBookmarkOwner::FutureBookmark> &list, const QString &name, KBookmarkGroup parent)
246 KGuiItem::assign(newButton, KGuiItem(tr("&New Folder…", "@action:button"), QStringLiteral("folder-new")));
250 KGuiItem::assign(d->buttonBox->button(QDialogButtonBox::Ok), KGuiItem(tr("Add", "@action:button"), QStringLiteral("bookmark-new")));
280 KGuiItem::assign(newButton, KGuiItem(tr("&New Folder…", "@action:button"), QStringLiteral("folder-new")));
342 QString caption = d->parentBookmark().fullText().isEmpty() ? tr("Create New Bookmark Folder", "@title:window")
345 QString text = QInputDialog::getText(this, caption, tr("New folder:", "@label:textbox"), QLineEdit::Normal, QString(), &ok);
373KBookmarkTreeItem::KBookmarkTreeItem(QTreeWidgetItem *parent, QTreeWidget *tree, const KBookmarkGroup &bk)
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders.
Definition kbookmarkdialog.h:31
KBookmark editBookmark(const KBookmark &bm)
Shows a properties dialog Note: this updates the bookmark and calls KBookmarkManager::emitChanged.
Definition kbookmarkdialog.cpp:171
KBookmarkGroup selectFolder(KBookmark start=KBookmark())
Shows a dialog to select a folder.
Definition kbookmarkdialog.cpp:270
KBookmarkGroup 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:...
Definition kbookmarkdialog.cpp:234
KBookmarkGroup createNewFolder(const QString &name, KBookmark parent=KBookmark())
Shows a dialog to create a new folder.
Definition kbookmarkdialog.cpp:303
KBookmark 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...
Definition kbookmarkdialog.cpp:198
KBookmarkDialog(KBookmarkManager *manager, QWidget *parent=nullptr)
Creates a KBookmarkDialog instance.
Definition kbookmarkdialog.cpp:331
KBookmark next(const KBookmark ¤t) const
Return the next sibling of a child bookmark of this group.
Definition kbookmark.cpp:129
This class implements the reading/writing of bookmarks in XML.
Definition kbookmarkmanager.h:48
Represents the data for a bookmark that will be added.
Definition kbookmarkowner.h:110
bool isGroup() const
Whether the bookmark is a group or a normal bookmark.
Definition kbookmark.cpp:285
KBookmarkGroup toGroup() const
Convert this to a group - do this only if isGroup() returns true.
Definition kbookmark.cpp:471
static QString commonParent(const QString &A, const QString &B)
Definition kbookmark.cpp:515
QString address() const
Return the "address" of this bookmark in the whole tree.
Definition kbookmark.cpp:477
static void assign(QPushButton *button, const KGuiItem &item)
PostalAddress address(const QVariant &location)
void clicked(bool checked)
SelectRows
SingleSelection
void addLayout(QLayout *layout, int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
Accepted
virtual void accept()
virtual int exec()
virtual void reject()
ActionRole
void accepted()
void rejected()
void addRow(QLayout *layout)
QIcon fromTheme(const QString &name)
QString getText(QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode, const QString &text, bool *ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints)
Normal
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
void expandItem(const QTreeWidgetItem *item)
void setCurrentItem(QTreeWidgetItem *item)
QString toString(FormattingOptions options) const const
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.