From 3895b8504f65346a1de19aa1ceb9570175337283 Mon Sep 17 00:00:00 2001 From: Juho Annunen Date: Wed, 11 Oct 2017 13:30:52 +0300 Subject: Update API and settings UI Implemented new UI design for Settings and minor changes to API Task-number: QTBUG-63091 Change-Id: Id72e20b53bc33ca0a3068d1e9b664fc5836a1cda Reviewed-by: Kari Oikarinen Reviewed-by: Teemu Holappa --- src/timedatesettings/timezonemodel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/timedatesettings/timezonemodel.h') diff --git a/src/timedatesettings/timezonemodel.h b/src/timedatesettings/timezonemodel.h index 14d7a2c..6684472 100644 --- a/src/timedatesettings/timezonemodel.h +++ b/src/timedatesettings/timezonemodel.h @@ -65,6 +65,10 @@ public: int rowCount(const QModelIndex & parent = QModelIndex()) const; QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const; QHash roleNames() const; + QList getModel() const + { + return m_items; + } enum Roles { Name = Qt::UserRole + 1, @@ -74,6 +78,9 @@ public: static void generateModel(TimezoneModel* model); +Q_SIGNALS: + void ready(); + private Q_SLOTS: void addNewItem(QObject* item); -- cgit v1.2.3