Pencil2D Animation
Download
Community
News
Docs
Contribute
Overview
Articles
Code
Class List
Class Index
Class Hierarchy
Class Members
File List
Loading...
Searching...
No Matches
core_lib
src
util
autosaverbytime.h
1
#ifndef AUTOSAVERBYTIME_H
2
#define AUTOSAVERBYTIME_H
3
4
#include <QObject>
5
#include <QTimer>
6
#include <QGuiApplication>
7
8
#include "preferencemanager.h"
9
10
class
AutosaverByTime
:
public
QObject
11
{
12
Q_OBJECT
13
14
public
:
15
explicit
AutosaverByTime
(
PreferenceManager
*,
QObject
*
parent
);
16
17
public
slots:
18
void
configChanged(SETTING);
19
void
timerTimeout();
20
21
signals:
22
void
timeout();
23
24
private
:
25
void
resetTimer();
26
27
PreferenceManager
* mPref =
nullptr
;
28
QTimer
mAutoSaveTimer;
29
30
};
31
32
#endif
// AUTOSAVERBYTIME_H
AutosaverByTime
Definition:
autosaverbytime.h:11
PreferenceManager
Definition:
preferencemanager.h:28
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QTimer