~mardy/ubuntu-system-settings-online-accounts/apparmor-1489489

« back to all changes in this revision

Viewing changes to online-accounts-ui/access-model.cpp

  • Committer: Bileto Bot
  • Author(s): Florian Boucault
  • Date: 2016-07-18 12:14:37 UTC
  • mfrom: (376.1.4 crossbuild_fixes)
  • Revision ID: ci-train-bot@canonical.com-20160718121437-wheuyyk2nnb9oich
Crossbuilding fixes

Approved by: Alberto Mardegan

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    QSortFilterProxyModel(parent),
89
89
    d_ptr(new AccessModelPrivate(this))
90
90
{
91
 
    Q_D(AccessModel);
92
 
 
93
91
    QObject::connect(this, SIGNAL(rowsInserted(const QModelIndex&,int,int)),
94
92
                     this, SIGNAL(countChanged()));
95
93
    QObject::connect(this, SIGNAL(rowsRemoved(const QModelIndex&,int,int)),
103
101
 
104
102
void AccessModel::setAccountModel(QAbstractItemModel *accountModel)
105
103
{
106
 
    Q_D(AccessModel);
107
 
 
108
104
    setSourceModel(accountModel);
109
105
    Q_EMIT accountModelChanged();
110
106
}
111
107
 
112
108
QAbstractItemModel *AccessModel::accountModel() const
113
109
{
114
 
    Q_D(const AccessModel);
115
110
    return sourceModel();
116
111
}
117
112