Commit 9d5a1b05 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

platforms/virtual: Remove redundant m_enabledOutputs

It's the same as VirtualBackend::m_outputs.
parent ebf4e082
......@@ -60,7 +60,6 @@ void VirtualBackend::init()
VirtualOutput *dummyOutput = new VirtualOutput(this);
dummyOutput->init(QPoint(0, 0), initialWindowSize());
m_outputs << dummyOutput ;
m_enabledOutputs << dummyOutput ;
}
setSoftwareCursorForced(true);
......@@ -102,7 +101,7 @@ Outputs VirtualBackend::outputs() const
Outputs VirtualBackend::enabledOutputs() const
{
return m_enabledOutputs;
return m_outputs;
}
void VirtualBackend::setVirtualOutputs(int count, QVector<QRect> geometries, QVector<int> scales)
......@@ -113,7 +112,6 @@ void VirtualBackend::setVirtualOutputs(int count, QVector<QRect> geometries, QVe
bool countChanged = m_outputs.size() != count;
qDeleteAll(m_outputs.begin(), m_outputs.end());
m_outputs.resize(count);
m_enabledOutputs.resize(count);
int sumWidth = 0;
for (int i = 0; i < count; i++) {
......@@ -128,7 +126,7 @@ void VirtualBackend::setVirtualOutputs(int count, QVector<QRect> geometries, QVe
if (scales.size()) {
vo->setScale(scales.at(i));
}
m_outputs[i] = m_enabledOutputs[i] = vo;
m_outputs[i] = vo;
}
emit virtualOutputsSet(countChanged);
......
......@@ -58,8 +58,6 @@ Q_SIGNALS:
private:
QVector<VirtualOutput*> m_outputs;
QVector<VirtualOutput*> m_enabledOutputs;
QScopedPointer<QTemporaryDir> m_screenshotDir;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment