added disk preferences pane and the ability to set the disk cache location

This commit is contained in:
itsmattkc
2020-01-09 15:51:59 +11:00
parent b233bdf8c9
commit 7df52b7fd5
9 changed files with 144 additions and 58 deletions
+4
View File
@@ -24,6 +24,7 @@
#include <QDebug>
#include <QDir>
#include <QMessageBox>
#include <QStandardPaths>
#include <QXmlStreamWriter>
#include "common/autoscroll.h"
@@ -73,6 +74,9 @@ void Config::SetDefaults()
config_map_["AutoscaleByDefault"] = false;
config_map_["Autoscroll"] = AutoScroll::kPage;
config_map_["DiskCachePath"] = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
config_map_["DiskCacheSize"] = 20.0;
config_map_["DefaultSequenceWidth"] = 1920;
config_map_["DefaultSequenceHeight"] = 1080;
config_map_["DefaultSequenceFrameRate"] = QVariant::fromValue(rational(1001, 30000));