Akonadi
tageditwidget.cpp
51 void select(const QModelIndex &parent, int start, int end, QItemSelectionModel::SelectionFlag selectionFlag) const;
72 void TagEditWidgetPrivate::select(const QModelIndex &parent, int start, int end, QItemSelectionModel::SelectionFlag selectionFlag) const
105 connect(createJob, &TagCreateJob::finished, this, &TagEditWidgetPrivate::slotCreateTagFinished);
116 KMessageBox::error(d, i18n("Failed to create a new tag"), i18n("An error occurred while creating a new tag"));
164 const QString text = xi18nc("@info", "Do you really want to remove the tag <resource>%1</resource>?", tag.name());
166 if (KMessageBox::questionYesNo(d, text, caption, KStandardGuiItem::del(), KStandardGuiItem::cancel()) == KMessageBox::Yes) {
178 connect(d->ui.tagsView, &QAbstractItemView::entered, d.get(), &TagEditWidgetPrivate::slotItemEntered);
180 connect(d->ui.newTagEdit, &QLineEdit::textEdited, d.get(), &TagEditWidgetPrivate::slotTextEdited);
181 connect(d->ui.newTagEdit, &QLineEdit::returnPressed, d.get(), &TagEditWidgetPrivate::slotCreateTag);
182 connect(d->ui.newTagButton, &QAbstractButton::clicked, d.get(), &TagEditWidgetPrivate::slotCreateTag);
191 connect(d->m_deleteButton, &QAbstractButton::clicked, d.get(), &TagEditWidgetPrivate::deleteTag);
225 disconnect(d->m_model, &QAbstractItemModel::rowsInserted, d.get(), &TagEditWidgetPrivate::onRowsInserted);
231 connect(d->m_model, &QAbstractItemModel::rowsInserted, d.get(), &TagEditWidgetPrivate::onRowsInserted);
Q_OBJECTQ_OBJECT
KGuiItem del()
QString xi18nc(const char *context, const char *text, const TYPE &arg...)
UserRole
Leave
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void finished(KJob *job)
Q_SLOTSQ_SLOTS
int right() const const
ItemType
T value() const const
void clicked(bool checked)
virtual bool event(QEvent *event) override
Q_SCRIPTABLE Q_NOREPLY void start()
QIcon fromTheme(const QString &name)
void push_back(const T &value)
void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
QString caption()
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString simplified() const const
SelectionFlag
virtual bool eventFilter(QObject *watched, QEvent *event)
QVariant data(int role) const const
ButtonCode questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Notify)
int top() const const
QString i18n(const char *text, const TYPE &arg...)
bool isEmpty() const const
void returnPressed()
void setupUi(QWidget *widget)
void select(const QModelIndex &topLeft, const QModelIndex &bottomRight)
enabled
void textEdited(const QString &text)
int height() const const
void rowsInserted(const QModelIndex &parent, int first, int last)
A widget that offers facilities to add/remove tags and optionally provides a way to select tags.
Definition: tageditwidget.h:29
QString i18nc(const char *context, const char *text, const TYPE &arg...)
int error() const
KGuiItem cancel()
const QList< QKeySequence > & end()
void entered(const QModelIndex &index)
QString toString() const const
Helper integration between Akonadi and Qt.
Job that creates a new tag in the Akonadi storage.
Definition: tagcreatejob.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.