Add expiry option to group edit.

This commit is contained in:
Florian Geyer committed 2012-05-18 10:52:05 +02:00
1 parent 810a6e4b39
commit d218924b4f
4 files changed
+55 -11

No files matched your search

+18
View File
@@ -248,6 +248,24 @@ void Group::setLastTopVisibleEntry(Entry* entry)
set(m_lastTopVisibleEntry, entry);
}
void Group::setExpires(const bool& value)
{
if (m_timeInfo.expires() != value) {
m_timeInfo.setExpires(value);
updateTimeinfo();
Q_EMIT modified();
}
}
void Group::setExpiryTime(const QDateTime& dateTime)
{
if (m_timeInfo.expiryTime() != dateTime) {
m_timeInfo.setExpiryTime(dateTime);
updateTimeinfo();
Q_EMIT modified();
}
}
Group* Group::parentGroup()
{
return m_parent;