diff options
author | Arno <arno@disconnect.de> | 2016-10-01 06:08:32 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-10-01 06:08:32 +0200 |
commit | b56947a5ec754019feb7ff37868f8c8eb6c39146 (patch) | |
tree | 45635e6dce4b88ac0975ad87ab08d305943bc140 /smglobals.cpp | |
parent | b4e40837f016849910851aa3cf688e2c4382e7cd (diff) | |
download | SheMov-b56947a5ec754019feb7ff37868f8c8eb6c39146.tar.gz SheMov-b56947a5ec754019feb7ff37868f8c8eb6c39146.tar.bz2 SheMov-b56947a5ec754019feb7ff37868f8c8eb6c39146.zip |
Configure reencode reasons
Next: make it available in new movies dialog.
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smglobals.cpp b/smglobals.cpp index 5c56855..23047d1 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -163,8 +163,17 @@ SmGlobals::SmGlobals() : mPictureViewer(0), mArchiveController(0){ mFiletypeMap.insert(FT_BACKCOVER, tr("Back Cover")); mFiletypeMap.insert(FT_GENERALCOVER, tr("General Cover")); mFiletypeMap.insert(FT_ORIGIN, tr("Origin")); + QSettings s; + mReencReasons = s.value("ui/reasons").toStringList(); } void SmGlobals::registerWidget(const QString &name, QWidget *w){ mWidgets.insert(name, w); } + +void SmGlobals::setReencReasons(const QStringList reasons){ + mReencReasons = reasons; + qSort(mReencReasons); + QSettings s; + s.setValue("ui/reasons", mReencReasons); +} |