ktimetracker
#include <timekard.h>
Public Member Functions | |
Week () | |
Week (const QDate &from) | |
QList< QDate > | days () const |
QDate | end () const |
QString | name () const |
QDate | start () const |
Static Public Member Functions | |
static QList< Week > | weeksFromDateRange (const QDate &from, const QDate &to) |
Detailed Description
Seven consecutive days.
The timecard report prints out one table for each week of data. The first day of the week should be read from the KControlPanel. Currently, it is hardcoded to Sunday.
Definition at line 45 of file timekard.h.
Constructor & Destructor Documentation
Week::Week | ( | ) |
Need an empty constructor to use in a QValueList.
Definition at line 140 of file timekard.cpp.
|
explicit |
Definition at line 142 of file timekard.cpp.
Member Function Documentation
QList<QDate> Week::days | ( | ) | const |
QDate Week::end | ( | ) | const |
Definition at line 152 of file timekard.cpp.
QString Week::name | ( | ) | const |
Return the name of the week.
Uses whatever the user has set up for the long date format in KControlPanel, prefixed by "Week of".
Definition at line 157 of file timekard.cpp.
QDate Week::start | ( | ) | const |
Definition at line 147 of file timekard.cpp.
|
static |
Returns a list of weeks for the given date range.
The first day of the week is picked up from the settings in the KontrolPanel.
The list is inclusive; for example, if you pass in a date range of two days, one being a Sunday and the other being a Monday, you will get two weeks back in the list.
Definition at line 162 of file timekard.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.