Add default path configration for screenshots

This commit is contained in:
Yuriy Puchkov
2020-07-13 10:56:08 +03:00
parent 2a7c41f56c
commit efa7cb7983
26 changed files with 700 additions and 5 deletions

View File

@@ -118,11 +118,26 @@ void ConfigHandler::setUserColors(const QVector<QColor> &l) {
}
QString ConfigHandler::savePathValue() {
return m_settings.value(QStringLiteral("savePath")).toString();
QString savePath = m_settings.value(QStringLiteral("savePathFixed")).toString();
if( savePath.isEmpty() ) {
savePath = m_settings.value(QStringLiteral("savePath")).toString();
}
return savePath;
}
void ConfigHandler::setSavePath(const QString &savePath) {
m_settings.setValue(QStringLiteral("savePath"), savePath);
QString savePathFixed = m_settings.value(QStringLiteral("savePathFixed")).toString();
if( savePathFixed.isEmpty() ) {
m_settings.setValue(QStringLiteral("savePath"), savePath);
}
}
QString ConfigHandler::savePathFixed() {
return m_settings.value(QStringLiteral("savePathFixed")).toString();
}
void ConfigHandler::setSavePathFixed(const QString &savePathFixed) {
m_settings.setValue(QStringLiteral("savePathFixed"), savePathFixed);
}
QColor ConfigHandler::uiMainColorValue() {