Skip to content

Commit

Permalink
Rename rides to activities for multi-sport athletes
Browse files Browse the repository at this point in the history
  • Loading branch information
prokoudine committed Jul 8, 2015
1 parent 7515f0a commit 83e0f42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/RideNavigatorProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class GroupByModel : public QAbstractProxyModel

// serialize
stream << (int)1;
stream << QString(tr("Entire Ride"));
stream << QString(tr("Entire Activity"));
stream << (quint64)(ride); // rideitem
stream << (quint64)ride->ride()->dataPoints().first()->secs
<< (quint64)ride->ride()->dataPoints().last()->secs;
Expand Down Expand Up @@ -394,13 +394,13 @@ class GroupByModel : public QAbstractProxyModel

// format the group by with ride count etc
if (groupBy != -1) {
QString returnString = QString(tr("%1: %2 (%3 rides)"))
QString returnString = QString(tr("%1: %2 (%3 activities)"))
.arg(sourceModel()->headerData(groupBy, Qt::Horizontal).toString())
.arg(group)
.arg(groupToSourceRow.value(groups[proxyIndex.row()])->count());
returning = QVariant(returnString);
} else {
QString returnString = QString(tr("%1 rides"))
QString returnString = QString(tr("%1 activities"))
.arg(groupToSourceRow.value(groups[proxyIndex.row()])->count());
returning = QVariant(returnString);
}
Expand Down Expand Up @@ -491,7 +491,7 @@ class GroupByModel : public QAbstractProxyModel
QString whichGroup(int row) const {

if (row < 0 || row >= rankedRows.count()) return ("");
if (groupBy == -1) return tr("All Rides");
if (groupBy == -1) return tr("All Activities");
else return groupFromValue(headerData(groupBy+2, // accommodate virtual column
Qt::Horizontal).toString(),
sourceModel()->data(sourceModel()->index(row,groupBy)).toString(),
Expand Down Expand Up @@ -559,13 +559,13 @@ class GroupByModel : public QAbstractProxyModel

} else {

// Just one group by 'All Rides'
// Just one group by 'All Activities'
QVector<int> *rows = new QVector<int>;
for (int i=0; i<sourceModel()->rowCount(QModelIndex()); i++) {
rows->append(i);
sourceRowToGroupRow.append(i);
}
groupToSourceRow.insert("All Rides", rows);
groupToSourceRow.insert("All Activities", rows);

}

Expand Down

0 comments on commit 83e0f42

Please sign in to comment.