415,7 → 415,7 |
|
if (!yr && qt->date().year() != y_run) |
{ |
year_run = new QTreeWidgetItem(running, running); |
year_run = new QTreeWidgetItem(running, running, QTreeWidgetItem::Type); |
y_run = qt->date().year(); |
year_run->setText(0, QString("%1").arg(y_run)); |
year_run->setData(0, Qt::UserRole, QString("run_%1").arg(y_run)); |
425,7 → 425,7 |
else |
year_run = yr; |
|
el = new QTreeWidgetItem(year_run, year_run); |
el = new QTreeWidgetItem(year_run, year_run, QTreeWidgetItem::Type); |
el->setText(0, idx); |
el->setData(0, Qt::UserRole, files.at(i)); |
el->setIcon(0, KIcon(QString("spw-running"))); |
439,10 → 439,10 |
|
if (!yb && qt->date().year() != y_bike) |
{ |
year_bike = new QTreeWidgetItem(biking, biking); |
year_bike = new QTreeWidgetItem(biking, biking, QTreeWidgetItem::Type); |
y_bike = qt->date().year(); |
year_bike->setText(0, QString("%1").arg(y_bike)); |
year_bike->setData(0, Qt::UserRole, QString("bike_%1").arg(y_run)); |
year_bike->setData(0, Qt::UserRole, QString("bike_%1").arg(y_bike)); |
year_bike->setIcon(0, KIcon(QString("today"))); |
year_bike->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); |
} |
449,7 → 449,7 |
else |
year_bike = yb; |
|
el = new QTreeWidgetItem(year_bike, year_bike); |
el = new QTreeWidgetItem(year_bike, year_bike, QTreeWidgetItem::Type); |
el->setText(0, idx); |
el->setData(0, Qt::UserRole, files.at(i)); |
el->setStatusTip(0, stTip); |
464,10 → 464,10 |
|
if (!yo && qt->date().year() != y_other) |
{ |
year_other = new QTreeWidgetItem(other, other); |
year_other = new QTreeWidgetItem(other, other, QTreeWidgetItem::Type); |
y_other = qt->date().year(); |
year_other->setText(0, QString("%1").arg(y_other)); |
year_other->setData(0, Qt::UserRole, QString("other_%1").arg(y_run)); |
year_other->setData(0, Qt::UserRole, QString("other_%1").arg(y_other)); |
year_other->setIcon(0, KIcon(QString("today"))); |
year_other->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); |
} |
474,7 → 474,7 |
else |
year_other = yo; |
|
el = new QTreeWidgetItem(year_other, year_other); |
el = new QTreeWidgetItem(year_other, year_other, QTreeWidgetItem::Type); |
el->setText(0, idx); |
el->setData(0, Qt::UserRole, files.at(i)); |
el->setStatusTip(0, stTip); |