Added lastUpdateCheck to settings
This commit is contained in:
@@ -172,6 +172,16 @@ void ZeiterfassungSettings::setTimeAssignmentBackgroundColor(const QString timeA
|
||||
setValue("timeAssignmentBackgroundColor", timeAssignmentBackgroundColor);
|
||||
}
|
||||
|
||||
QDate ZeiterfassungSettings::lastUpdateCheck() const
|
||||
{
|
||||
return value("lastUpdateCheck").toDate();
|
||||
}
|
||||
|
||||
void ZeiterfassungSettings::setLastUpdateCheck(const QDate &lastUpdateCheck)
|
||||
{
|
||||
setValue("lastUpdateCheck", lastUpdateCheck);
|
||||
}
|
||||
|
||||
void ZeiterfassungSettings::prepentItem(const QString &name, const QString &item)
|
||||
{
|
||||
if(item.trimmed().isEmpty())
|
||||
|
@@ -3,6 +3,9 @@
|
||||
|
||||
#include <QSettings>
|
||||
#include <QLocale>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QDate>
|
||||
|
||||
class ZeiterfassungSettings : public QSettings
|
||||
{
|
||||
@@ -58,6 +61,9 @@ public:
|
||||
QString timeAssignmentBackgroundColor() const;
|
||||
void setTimeAssignmentBackgroundColor(const QString timeAssignmentBackgroundColor);
|
||||
|
||||
QDate lastUpdateCheck() const;
|
||||
void setLastUpdateCheck(const QDate &lastUpdateCheck);
|
||||
|
||||
private:
|
||||
void prepentItem(const QString &name, const QString &item);
|
||||
};
|
||||
|
Reference in New Issue
Block a user