[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libkscreen/apol/libkscreen] src: de/serialize the follow setting
From:       Aleix Pol <null () kde ! org>
Date:       2018-09-26 23:27:31
Message-ID: E1g5JDP-000610-Oj () code ! kde ! org
[Download RAW message or body]

Git commit bd41d5667aec688973a04c7a535c145e472366f5 by Aleix Pol.
Committed on 26/09/2018 at 23:25.
Pushed by apol into branch 'apol/libkscreen'.

de/serialize the follow setting

M  +3    -0    src/configserializer.cpp

https://commits.kde.org/libkscreen/bd41d5667aec688973a04c7a535c145e472366f5

diff --git a/src/configserializer.cpp b/src/configserializer.cpp
index 376b29a..70148a2 100644
--- a/src/configserializer.cpp
+++ b/src/configserializer.cpp
@@ -86,6 +86,7 @@ QJsonObject ConfigSerializer::serializeOutput(const OutputPtr &output)
     obj[QLatin1String("currentModeId")] = output->currentModeId();
     obj[QLatin1String("preferredModes")] = serializeList(output->preferredModes());
     obj[QLatin1String("connected")] = output->isConnected();
+    obj[QLatin1String("followPreferredMode")] = output->followPreferredMode();
     obj[QLatin1String("enabled")] = output->isEnabled();
     obj[QLatin1String("primary")] = output->isPrimary();
     obj[QLatin1String("clones")] = serializeList(output->clones());
@@ -242,6 +243,8 @@ OutputPtr ConfigSerializer::deserializeOutput(const QDBusArgument &arg)
             output->setPreferredModes(deserializeList<QString>(value.value<QDBusArgument>()));
         } else if (key == QLatin1String("connected")) {
             output->setConnected(value.toBool());
+        } else if (key == QLatin1String("followPreferredMode")) {
+            output->setFollowPreferredMode(value.toBool());
         } else if (key == QLatin1String("enabled")) {
             output->setEnabled(value.toBool());
         } else if (key == QLatin1String("primary")) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic