@@ -28,7 +28,7 @@ TimeZoneLocationModel::TimeZoneLocationModel(QObject *parent):
28 QAbstractListModel(parent),
28 QAbstractListModel(parent),
29 m_workerThread(new TimeZonePopulateWorker())
29 m_workerThread(new TimeZonePopulateWorker())
31− qRegisterMetaType<TzLocation>();
31+ qRegisterMetaType<TzLocationWizard>();
33 m_roleNames[Qt::DisplayRole] = "displayName";
33 m_roleNames[Qt::DisplayRole] = "displayName";
34 m_roleNames[TimeZoneRole] = "timeZone";
34 m_roleNames[TimeZoneRole] = "timeZone";
@@ -66,7 +66,7 @@ void TimeZoneLocationModel::store()
66 endResetModel();
66 endResetModel();
69−void TimeZoneLocationModel::processModelResult(const TzLocation &location)
69+void TimeZoneLocationModel::processModelResult(const TzLocationWizard &location)
71 m_locations.append(location);
71 m_locations.append(location);
@@ -83,7 +83,7 @@ QVariant TimeZoneLocationModel::data(const QModelIndex &index, int role) const
83 if (index.row() >= m_locations.count() || index.row() < 0)
83 if (index.row() >= m_locations.count() || index.row() < 0)
84 return QVariant();
84 return QVariant();
86− const TzLocation tz = m_locations.at(index.row());
86+ const TzLocationWizard tz = m_locations.at(index.row());
88 const QString country(tz.full_country.isEmpty() ? tz.country : tz.full_country);
88 const QString country(tz.full_country.isEmpty() ? tz.country : tz.full_country);
@@ -130,7 +130,7 @@ void TimeZonePopulateWorker::buildCityMap()
130 TzDB *tzdb = tz_load_db();
130 TzDB *tzdb = tz_load_db();
131 GPtrArray *tz_locations = tz_get_locations(tzdb);
131 GPtrArray *tz_locations = tz_get_locations(tzdb);
133− TimeZoneLocationModel::TzLocation tmpTz;
133+ TimeZoneLocationModel::TzLocationWizard tmpTz;
135 for (guint i = 0; i < tz_locations->len; ++i) {
135 for (guint i = 0; i < tz_locations->len; ++i) {
136 auto tmp = static_cast<CcTimezoneLocation *>(g_ptr_array_index(tz_locations, i));
136 auto tmp = static_cast<CcTimezoneLocation *>(g_ptr_array_index(tz_locations, i));