compile with QT < 4.7 (RHEL6 an clones)

This commit is contained in:
Andreas Piesk 2012-05-09 20:29:21 +02:00 committed by Florian Geyer
parent 93a868a571
commit 7568582b05
9 changed files with 33 additions and 15 deletions

View file

@ -21,6 +21,7 @@
#include "core/DatabaseIcons.h"
#include "core/Group.h"
#include "core/Metadata.h"
#include "core/Tools.h"
Entry::Entry()
{
@ -70,8 +71,8 @@ template <class T> bool Entry::set(T& property, const T& value)
void Entry::updateTimeinfo()
{
if (m_updateTimeinfo) {
m_data.timeInfo.setLastModificationTime(QDateTime::currentDateTimeUtc());
m_data.timeInfo.setLastAccessTime(QDateTime::currentDateTimeUtc());
m_data.timeInfo.setLastModificationTime(Tools::currentDateTimeUtc());
m_data.timeInfo.setLastAccessTime(Tools::currentDateTimeUtc());
}
}
@ -419,7 +420,7 @@ void Entry::setGroup(Group* group)
QObject::setParent(group);
if (m_updateTimeinfo) {
m_data.timeInfo.setLocationChanged(QDateTime::currentDateTimeUtc());
m_data.timeInfo.setLocationChanged(Tools::currentDateTimeUtc());
}
}