2018-07-12 10:15:09 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2018-08-14 10:30:07 +02:00
|
|
|
#include "qPrefAnimations.h"
|
2018-07-17 15:22:51 +02:00
|
|
|
#include "qPrefPrivate.h"
|
|
|
|
|
|
|
|
static const QString group = QStringLiteral("Animations");
|
2018-07-12 10:15:09 +02:00
|
|
|
|
|
|
|
qPrefAnimations::qPrefAnimations(QObject *parent) : QObject(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
qPrefAnimations *qPrefAnimations::instance()
|
|
|
|
{
|
|
|
|
static qPrefAnimations *self = new qPrefAnimations;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
void qPrefAnimations::loadSync(bool doSync)
|
|
|
|
{
|
|
|
|
disk_animation_speed(doSync);
|
|
|
|
}
|
|
|
|
|
|
|
|
HANDLE_PREFERENCE_INT(Animations, "/animation_speed", animation_speed);
|