Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* ProjectSettings
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Fröbel, NLE, 2019-02-08
|
||||
*/
|
||||
|
||||
#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>();
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
namespace AudioVideoManagement
|
||||
{
|
||||
|
||||
bool ProjectSettings::isAlwaysRecording()
|
||||
{
|
||||
return value(QStringLiteral("recording"), false);
|
||||
}
|
||||
|
||||
} // namespace AudioVideoManagement
|
||||
Reference in new issue
Block a user