projects
/
weightgraph
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed a locale bug in stats view, improved edit window.
[weightgraph]
/
weightgraph
/
weightdata.cpp
diff --git
a/weightgraph/weightdata.cpp
b/weightgraph/weightdata.cpp
index
36b286c
..
23c18e3
100644
(file)
--- a/
weightgraph/weightdata.cpp
+++ b/
weightgraph/weightdata.cpp
@@
-158,6
+158,10
@@
int WeightDataModel::rowOfDate(const QDate &date) const
return i;
return -1;
}
+QModelIndex WeightDataModel::indexOfDate(const QDate &date) const
+{
+ return index(rowOfDate(date), 0);
+}
bool WeightDataModel::dateExists(const QDate &date) const
{