|
|
|
@ -24,6 +24,7 @@
@@ -24,6 +24,7 @@
|
|
|
|
|
#include "src/core/corestructs.h" |
|
|
|
|
#include "src/core/core.h" |
|
|
|
|
#include "src/widget/gui.h" |
|
|
|
|
#include "src/widget/style.h" |
|
|
|
|
#include "src/persistence/profilelocker.h" |
|
|
|
|
#include "src/persistence/settingsserializer.h" |
|
|
|
|
#include "src/nexus.h" |
|
|
|
@ -224,6 +225,12 @@ void Settings::loadGlobal()
@@ -224,6 +225,12 @@ void Settings::loadGlobal()
|
|
|
|
|
} |
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
s.beginGroup("Chat"); |
|
|
|
|
{ |
|
|
|
|
chatMessageFont = s.value("chatMessageFont", Style::getFont(Style::Big)).value<QFont>(); |
|
|
|
|
} |
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
s.beginGroup("State"); |
|
|
|
|
windowGeometry = s.value("windowGeometry", QByteArray()).toByteArray(); |
|
|
|
|
windowState = s.value("windowState", QByteArray()).toByteArray(); |
|
|
|
@ -454,6 +461,12 @@ void Settings::saveGlobal()
@@ -454,6 +461,12 @@ void Settings::saveGlobal()
|
|
|
|
|
s.setValue("statusChangeNotificationEnabled", statusChangeNotificationEnabled); |
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
s.beginGroup("Chat"); |
|
|
|
|
{ |
|
|
|
|
s.setValue("chatMessageFont", chatMessageFont); |
|
|
|
|
} |
|
|
|
|
s.endGroup(); |
|
|
|
|
|
|
|
|
|
s.beginGroup("State"); |
|
|
|
|
s.setValue("windowGeometry", windowGeometry); |
|
|
|
|
s.setValue("windowState", windowState); |
|
|
|
@ -1134,6 +1147,18 @@ void Settings::setGlobalAutoAcceptDir(const QString& newValue)
@@ -1134,6 +1147,18 @@ void Settings::setGlobalAutoAcceptDir(const QString& newValue)
|
|
|
|
|
globalAutoAcceptDir = newValue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const QFont& Settings::getChatMessageFont() const |
|
|
|
|
{ |
|
|
|
|
QMutexLocker locker(&bigLock); |
|
|
|
|
return chatMessageFont; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Settings::setChatMessageFont(const QFont& font) |
|
|
|
|
{ |
|
|
|
|
QMutexLocker locker(&bigLock); |
|
|
|
|
chatMessageFont = font; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Settings::setWidgetData(const QString& uniqueName, const QByteArray& data) |
|
|
|
|
{ |
|
|
|
|
QMutexLocker locker{&bigLock}; |
|
|
|
|