mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 22:28:08 +00:00
feat(src/components/contact/VcardModel): set isReadOnly attribute at creation
This commit is contained in:
parent
1b6788f005
commit
853f9fa82e
2 changed files with 3 additions and 2 deletions
|
|
@ -98,9 +98,10 @@ inline void removeBelcardPhoto (const shared_ptr<belcard::BelCard> &belcard, boo
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
VcardModel::VcardModel (shared_ptr<linphone::Vcard> vcard) {
|
||||
VcardModel::VcardModel (shared_ptr<linphone::Vcard> vcard, bool isReadOnly) {
|
||||
Q_ASSERT(vcard != nullptr);
|
||||
mVcard = vcard;
|
||||
mIsReadOnly = isReadOnly;
|
||||
}
|
||||
|
||||
VcardModel::~VcardModel () {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class VcardModel : public QObject {
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
public:
|
||||
VcardModel (std::shared_ptr<linphone::Vcard> vcard);
|
||||
VcardModel (std::shared_ptr<linphone::Vcard> vcard, bool isReadOnly = true);
|
||||
|
||||
~VcardModel ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue