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?"));
137 dlg->addButton(i18nc("@action:button", "Ignore and Overwrite changes"), QMessageBox::RejectRole);
197 QObject::connect(mMonitor, &Monitor::itemChanged, mParent, [this](const Akonadi::Item &item, const QSet<QByteArray> &arrays) {
340 styleSheet = QStringLiteral("QLineEdit{ background-color:%1 }").arg(bgBrush.brush(palette()).color().name());
bool isValid() const
Rights rights() const
CanCreateItem
CanChangeItem
An widget to edit contact groups in Akonadi.
Definition contactgroupeditor.h:73
void setContactGroupTemplate(const KContacts::ContactGroup &group)
Sets a contact group that is used as template in create mode.
Definition contactgroupeditor.cpp:321
bool saveContactGroup()
Saves the contact group from the editor back to the storage.
Definition contactgroupeditor.cpp:261
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contact groups.
Definition contactgroupeditor.cpp:328
ContactGroupEditor(Mode mode, QWidget *parent=nullptr)
Creates a new contact group editor.
Definition contactgroupeditor.cpp:208
void loadContactGroup(const Akonadi::Item &group)
Loads the contact group into the editor.
Definition contactgroupeditor.cpp:241
~ContactGroupEditor() override
Destroys the contact group editor.
void setPayload(const T &p)
void setMimeType(const QString &mimeType)
void itemChanged(const Akonadi::Item &item, const QSet< QByteArray > &partIdentifiers)
BackgroundRole
NegativeBackground
void setName(const QString &name)
static QString mimeType()
QString name() const
virtual QString errorString() const
int error() const
void result(KJob *job)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual int rowCount(const QModelIndex &parent) const const=0
AllEditTriggers
Accepted
Interactive
void textChanged(const QString &text)
AcceptRole
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setObjectName(QAnyStringView name)
singleShot
palette
void setFocus()
styleSheet
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.