KIdentityManagement
identitycombo.cpp
Go to the documentation of this file.
58 connect(manager, &KIdentityManagementCore::IdentityManager::identitiesWereChanged, this, &IdentityCombo::slotIdentityManagerChanged);
59 connect(manager, &KIdentityManagementCore::IdentityManager::deleted, this, &IdentityCombo::identityDeleted);
73void IdentityCombo::setIdentityActivitiesAbstract(IdentityActivitiesAbstract *newIdentityActivitiesAbstract)
90 return d->mIdentityProxyModel->mapToSource(d->mIdentityProxyModel->index(currentIndex(), KIdentityManagementCore::IdentityTreeModel::IdentityNameRole))
97 return d->mIdentityProxyModel->mapToSource(d->mIdentityProxyModel->index(currentIndex(), KIdentityManagementCore::IdentityTreeModel::UoidRole))
Manages the list of identities.
Definition identitymanager.h:26
void deleted(uint uoid)
Emitted on commit() for each deleted identity.
A combo box that always shows the up-to-date identity list.
Definition identitycombo.h:24
void setIdentityActivitiesAbstract(KIdentityManagementCore::IdentityActivitiesAbstract *newIdentityActivitiesAbstract)
Definition identitycombo.cpp:73
bool enablePlasmaActivities() const
Definition identitycombo.cpp:78
void identityChanged(KIdentityManagementCore::Identity::Id uoid)
Really emitted whenever the current identity changes.
bool isDefaultIdentity() const
Return whether the current identity is the default identity.
Definition identitycombo.cpp:102
void setEnablePlasmaActivities(bool newEnablePlasmaActivities)
Definition identitycombo.cpp:83
void setShowDefault(bool showDefault)
Show (default) on the default identity. By default this behavior is disabled.
Definition identitycombo.cpp:194
KIdentityManagementCore::IdentityActivitiesAbstract * identityActivitiesAbstract() const
Definition identitycombo.cpp:68
KIdentityManagementCore::IdentityManager * identityManager() const
Returns the IdentityManager used in this combo box.
Definition identitycombo.cpp:189
IdentityCombo(KIdentityManagementCore::IdentityManager *manager, QWidget *parent=nullptr)
IdentityCombo contructor.
Definition identitycombo.cpp:54
void setCurrentIdentity(const KIdentityManagementCore::Identity &identity)
Set the current identity.
Definition identitycombo.cpp:107
void slotIdentityManagerChanged()
Connected to IdentityManager::changed(). Reloads the list of identities.
Definition identitycombo.cpp:160
KIdentityManagementCore::Identity::Id currentIdentity() const
Return the current identity id.
Definition identitycombo.cpp:95
void activated(int index)
currentIndex
void setModelColumn(int visibleColumn)
Q_EMITQ_EMIT
bool blockSignals(bool block)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QChar * data()
bool isEmpty() const const
void setToolTip(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:11 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:33:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.