Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b02d7ff9 authored by Laurent Montel's avatar Laurent Montel 😁

Fix compile when we use QT_NO_NARROWING_CONVERSIONS_IN_CONNECT flags

parent ae21aa70
......@@ -128,7 +128,14 @@ void KWinCompositingSettings::init()
// xrender scale filter
m_form.xrScaleFilter->setCurrentIndex(m_compositing->xrScaleFilter());
connect(m_compositing, &Compositing::xrScaleFilterChanged, m_form.xrScaleFilter, &QComboBox::setCurrentIndex);
connect(m_form.xrScaleFilter, currentIndexChangedSignal, m_compositing, &Compositing::setXrScaleFilter);
connect(m_form.xrScaleFilter, currentIndexChangedSignal,
[this](int index) {
if (index == 0) {
m_compositing->setXrScaleFilter(false);
} else {
m_compositing->setXrScaleFilter(true);
}
});
// tearing prevention
m_form.tearingPrevention->setCurrentIndex(m_compositing->glSwapStrategy());
......
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