added autoscrolling

This commit is contained in:
itsmattkc
2018-11-20 22:45:00 +11:00
parent e785586df2
commit 3c6bdcc6f2
7 changed files with 107 additions and 16 deletions
+6 -1
View File
@@ -28,7 +28,8 @@ Config::Config()
recording_mode(2),
enable_seek_to_import(false),
enable_audio_scrubbing(true),
drop_on_media_to_replace(true)
drop_on_media_to_replace(true),
autoscroll(AUTOSCROLL_PAGE_SCROLL)
{}
void Config::load(QString path) {
@@ -99,6 +100,9 @@ void Config::load(QString path) {
} else if (stream.name() == "DropFileOnMediaToReplace") {
stream.readNext();
drop_on_media_to_replace = (stream.text() == "1");
} else if (stream.name() == "Autoscroll") {
stream.readNext();
autoscroll = stream.text().toInt();
}
}
}
@@ -143,6 +147,7 @@ void Config::save(QString path) {
stream.writeTextElement("EnableSeekToImport", QString::number(enable_seek_to_import));
stream.writeTextElement("AudioScrubbing", QString::number(enable_audio_scrubbing));
stream.writeTextElement("DropFileOnMediaToReplace", QString::number(drop_on_media_to_replace));
stream.writeTextElement("Autoscroll", QString::number(autoscroll));
stream.writeEndElement(); // configuration
stream.writeEndDocument(); // doc