From 79138823399fb33a9134e659a8aa6b878f1a5060 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee <elv1313@gmail.com> Date: Tue, 18 Apr 2017 01:56:04 -0400 Subject: [PATCH] callmodel: Fix some Q_PROPERTY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And make another method invokable (for the bindings). Change-Id: If8a1758db5afb0356b9f4891aee30eabe9c25cb3 Reviewed-by: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> --- src/callmodel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callmodel.h b/src/callmodel.h index 38ff704d..935870b2 100644 --- a/src/callmodel.h +++ b/src/callmodel.h @@ -76,7 +76,8 @@ public: Q_PROPERTY(bool isValid READ isValid ) Q_PROPERTY(bool hasConference READ hasConference ) Q_PROPERTY(bool isConnected READ isConnected ) - Q_PROPERTY(UserActionModel* userActionModel READ userActionModel ) + Q_PROPERTY(Call* selectedCall READ selectedCall ) + Q_PROPERTY(UserActionModel* userActionModel READ userActionModel CONSTANT) //Call related Q_INVOKABLE Call* dialingCall ( const QString& peerName=QString(), Account* account=nullptr, Call* parent = nullptr ); @@ -104,7 +105,7 @@ public: bool hasConference () const; bool isConnected () const; UserActionModel* userActionModel () const; - QItemSelectionModel* selectionModel () const; + Q_INVOKABLE QItemSelectionModel* selectionModel() const; Q_INVOKABLE Call* getCall ( const QModelIndex& idx ) const; Q_INVOKABLE QList<Call*> getConferenceParticipants(Call *conf) const; -- GitLab