28 self.__comment = "" # comment string |
28 self.__comment = "" # comment string |
29 self.__valid = False # flag for a valid entry |
29 self.__valid = False # flag for a valid entry |
30 |
30 |
31 self.__continueDateTime = QDateTime() |
31 self.__continueDateTime = QDateTime() |
32 self.__paused = False |
32 self.__paused = False |
|
33 |
|
34 def __lt__(self, other): |
|
35 """ |
|
36 Special method implementing the less than function. |
|
37 |
|
38 @param other reference to the other object (TimeTrackEntry) |
|
39 """ |
|
40 return self.__startDateTime < other.getStartDateTime() |
33 |
41 |
34 def toString(self): |
42 def toString(self): |
35 """ |
43 """ |
36 Public method to get a string representation of the entry. |
44 Public method to get a string representation of the entry. |
37 |
45 |