Akonadi Contacts
contactgroupeditor.cpp
74 auto collectionFetchJob = new Akonadi::CollectionFetchJob(mItem.parentCollection(), Akonadi::CollectionFetchJob::Base);
135 dlg->setInformativeText(i18n("The contact group has been changed by someone else.\nWhat should be done?"));
197 QObject::connect(mMonitor, &Monitor::itemChanged, mParent, [this](const Akonadi::Item &item, const QSet<QByteArray> &arrays) {
224 d->mGui.membersView->setItemDelegate(new ContactGroupEditorDelegate(d->mGui.membersView, this));
244 Q_ASSERT_X(false, "ContactGroupEditor::loadContactGroup", "You are calling loadContactGroup in CreateMode!");
324 d->mGui.membersView->header()->setDefaultSectionSize(d->mGui.membersView->header()->width() / 2);
340 styleSheet = QStringLiteral("QLineEdit{ background-color:%1 }").arg(bgBrush.brush(palette()).color().name());
virtual int rowCount(const QModelIndex &parent) const const=0
palette
CanCreateItem
singleShot
NegativeBackground
AllEditTriggers
void loadContactGroup(const Akonadi::Item &group)
Loads the contact group into the editor.
Definition: contactgroupeditor.cpp:241
void setMimeType(const QString &mimeType)
styleSheet
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Interactive
QString i18n(const char *text, const TYPE &arg...)
void textChanged(const QString &text)
AcceptRole
An widget to edit contact groups in Akonadi.
Definition: contactgroupeditor.h:72
Rights rights() const
~ContactGroupEditor() override
Destroys the contact group editor.
static QString mimeType()
Accepted
void setupUi(QWidget *widget)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QString name() const
void setObjectName(const QString &name)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void setContactGroupTemplate(const KContacts::ContactGroup &group)
Sets a contact group that is used as template in create mode.
Definition: contactgroupeditor.cpp:321
bool isValid() const
void setPayload(const T &p)
void setName(const QString &name)
virtual QString errorString() const
int error() const
void setFocus()
bool saveContactGroup()
Saves the contact group from the editor back to the storage.
Definition: contactgroupeditor.cpp:261
BackgroundRole
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contact groups.
Definition: contactgroupeditor.cpp:328
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:51:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:51:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.