Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/MapThemeSortFilterProxyModel.cpp
Context not available. | |||||
52 | const QAbstractItemModel *model = index.model(); | 52 | const QAbstractItemModel *model = index.model(); | ||
---|---|---|---|---|---|
53 | QModelIndex columnIndex = model->index( index.row(), 0, QModelIndex() ); | 53 | QModelIndex columnIndex = model->index( index.row(), 0, QModelIndex() ); | ||
54 | QString const key = QLatin1String("Favorites/") + model->data(columnIndex).toString(); | 54 | QString const key = QLatin1String("Favorites/") + model->data(columnIndex).toString(); | ||
55 | #ifndef APPLE_STANDALONE_BUNDLE | ||||
56 | QSettings::setDefaultFormat(QSettings::IniFormat); | ||||
57 | #endif | ||||
55 | return QSettings().contains( key ); | 58 | return QSettings().contains( key ); | ||
56 | } | 59 | } | ||
57 | 60 | | |||
Context not available. | |||||
60 | const QAbstractItemModel *model = index.model(); | 63 | const QAbstractItemModel *model = index.model(); | ||
61 | QModelIndex columnIndex = model->index( index.row(), 0, QModelIndex() ); | 64 | QModelIndex columnIndex = model->index( index.row(), 0, QModelIndex() ); | ||
62 | QString const key = QLatin1String("Favorites/") + model->data(columnIndex).toString(); | 65 | QString const key = QLatin1String("Favorites/") + model->data(columnIndex).toString(); | ||
66 | #ifndef APPLE_STANDALONE_BUNDLE | ||||
67 | QSettings::setDefaultFormat(QSettings::IniFormat); | ||||
68 | #endif | ||||
63 | return QSettings().value( key ).toDateTime(); | 69 | return QSettings().value( key ).toDateTime(); | ||
64 | } | 70 | } | ||
65 | 71 | | |||
Context not available. |