32 lines
552 B
C++
Executable File
32 lines
552 B
C++
Executable File
|
|
|
|
|
|
#include "project_settings.h"
|
|
#include <LtsUtilsSettings/settings.h>
|
|
#include <QString>
|
|
#include <QVariant>
|
|
|
|
namespace
|
|
{
|
|
|
|
template<typename T>
|
|
T value(const QString &identifier, const T &defaultValue)
|
|
{
|
|
LtsUtils::ProjectSettings *settings = LtsUtils::ProjectSettings::getInstance();
|
|
QVariant variant = settings->value(QStringLiteral("avm"), identifier, defaultValue);
|
|
return variant.value<T>();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
bool ProjectSettings::isAlwaysRecording()
|
|
{
|
|
return value(QStringLiteral("recording"), false);
|
|
}
|
|
|
|
}
|