Changeset View
Changeset View
Standalone View
Standalone View
kded/serializer.cpp
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 146 | Q_FOREACH(const KScreen::OutputPtr &output, outputs) { | |||
---|---|---|---|---|---|
149 | } | 149 | } | ||
150 | 150 | | |||
151 | QVariantMap info; | 151 | QVariantMap info; | ||
152 | 152 | | |||
153 | info[QStringLiteral("id")] = Serializer::outputId(output); | 153 | info[QStringLiteral("id")] = Serializer::outputId(output); | ||
154 | info[QStringLiteral("primary")] = output->isPrimary(); | 154 | info[QStringLiteral("primary")] = output->isPrimary(); | ||
155 | info[QStringLiteral("enabled")] = output->isEnabled(); | 155 | info[QStringLiteral("enabled")] = output->isEnabled(); | ||
156 | info[QStringLiteral("rotation")] = output->rotation(); | 156 | info[QStringLiteral("rotation")] = output->rotation(); | ||
157 | info[QStringLiteral("scale")] = output->scale(); | ||||
157 | 158 | | |||
158 | QVariantMap pos; | 159 | QVariantMap pos; | ||
159 | pos[QStringLiteral("x")] = output->pos().x(); | 160 | pos[QStringLiteral("x")] = output->pos().x(); | ||
160 | pos[QStringLiteral("y")] = output->pos().y(); | 161 | pos[QStringLiteral("y")] = output->pos().y(); | ||
161 | info[QStringLiteral("pos")] = pos; | 162 | info[QStringLiteral("pos")] = pos; | ||
162 | 163 | | |||
163 | if (output->isEnabled()) { | 164 | if (output->isEnabled()) { | ||
164 | const KScreen::ModePtr mode = output->currentMode(); | 165 | const KScreen::ModePtr mode = output->currentMode(); | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |