Fixed a locale bug in stats view, improved edit window.
[weightgraph] / weightgraph / weightdata.cpp
index 36b286c..23c18e3 100644 (file)
@@ -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
 {