1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/app/autosaver.cpp

18 lines
393 B
C++
Raw Normal View History

2011-03-02 16:57:41 +01:00
#include "autosaver.h"
#include "mainapplication.h"
AutoSaver::AutoSaver(QObject *parent) :
QObject(parent)
,p_mainApp(MainApplication::getInstance())
{
m_timer.start(1000*5, this);
}
void AutoSaver::timerEvent(QTimerEvent *event)
{
if (event->timerId() == m_timer.timerId() && p_mainApp->isChanged())
emit saveApp();
else
QObject::timerEvent(event);
}