From 15b2dbede4bb7907d687cf72d54b4ecdd7cc42a9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 16 Apr 2019 09:47:28 +0200 Subject: Mobile: reinstate roleNames function in ConnectionListModel Commit c69ca4df80c9c74aa842b7f1fb3c44b22ae3232e removed the roleNames function, which is not needed according to the docs, as a default function is provided. For unknown reasons this broke the QML combo box. Reinstate the function. Signed-off-by: Berthold Stoeger --- core/connectionlistmodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/connectionlistmodel.h') diff --git a/core/connectionlistmodel.h b/core/connectionlistmodel.h index d05b753c7..75bf9c7d6 100644 --- a/core/connectionlistmodel.h +++ b/core/connectionlistmodel.h @@ -7,6 +7,7 @@ class ConnectionListModel : public QAbstractListModel { Q_OBJECT public: ConnectionListModel(QObject *parent = nullptr); + QHash roleNames() const override; QVariant data(const QModelIndex &index, int role) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; void addAddress(const QString &address); -- cgit v1.2.3-70-g09d2