Changeset View
Changeset View
Standalone View
Standalone View
kcm/output_model.cpp
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 201 | { | |||
---|---|---|---|---|---|
220 | if (!m_outputs.isEmpty()) { | 220 | if (!m_outputs.isEmpty()) { | ||
221 | const QPoint delta = m_outputs[0].pos - m_outputs[0].ptr->pos(); | 221 | const QPoint delta = m_outputs[0].pos - m_outputs[0].ptr->pos(); | ||
222 | pos = output->pos() + delta; | 222 | pos = output->pos() + delta; | ||
223 | } | 223 | } | ||
224 | m_outputs.insert(i, Output(output, pos)); | 224 | m_outputs.insert(i, Output(output, pos)); | ||
225 | 225 | | |||
226 | connect(output.data(), &KScreen::Output::isPrimaryChanged, | 226 | connect(output.data(), &KScreen::Output::isPrimaryChanged, | ||
227 | this, [this, output](){ | 227 | this, [this, output](){ | ||
228 | roleChanged(output->id(), {PrimaryRole}); | 228 | roleChanged(output->id(), PrimaryRole); | ||
229 | }); | 229 | }); | ||
230 | Q_EMIT endInsertRows(); | 230 | Q_EMIT endInsertRows(); | ||
231 | 231 | | |||
232 | // Update replications. | 232 | // Update replications. | ||
233 | for (int j = 0; j < m_outputs.size(); j++) { | 233 | for (int j = 0; j < m_outputs.size(); j++) { | ||
234 | if (i == j) { | 234 | if (i == j) { | ||
235 | continue; | 235 | continue; | ||
236 | } | 236 | } | ||
▲ Show 20 Lines • Show All 729 Lines • Show Last 20 Lines |