Add default marker color to config

This commit is contained in:
Thomas Wilshaw
2021-10-22 22:15:53 +01:00
parent 59c8c45018
commit 374b97b6a5
5 changed files with 26 additions and 3 deletions
+3 -2
View File
@@ -21,15 +21,16 @@
#include "timelinemarker.h"
#include "common/xmlutils.h"
#include "config/config.h"
namespace olive {
TimelineMarker::TimelineMarker(const TimeRange &time, const QString &name, QObject *parent) :
QObject(parent),
time_(time),
name_(name),
color_(7) // FIXME: set via config
name_(name)
{
color_ = Config::Current()[QStringLiteral("MarkerColor")].toInt();
}
const TimeRange &TimelineMarker::time() const