Commit 5ee3b414 authored by Méven Car's avatar Méven Car

Clean outdated QT_VERSION_CHECK

Summary: Plasma desktop depends on KF 5.66

Reviewers: #plasma, ervin, mlaurent, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27058
parent 281cc61c
......@@ -233,11 +233,7 @@ void EmoticonList::selectTheme()
new QListWidgetItem(QIcon(it.key()), text, emoList);
}
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
emit changed();
#else
emit markAsChanged();
#endif
}
void EmoticonList::btRemoveThemeClicked()
......@@ -307,11 +303,7 @@ void EmoticonList::addEmoticon()
if (theme.addEmoticon(dlg->getEmoticon(), dlg->getText(), KEmoticonsProvider::Copy)) {
new QListWidgetItem(QPixmap(dlg->getEmoticon()), dlg->getText(), emoList);
themeList->currentItem()->setIcon(QIcon(previewEmoticon(theme)));
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
emit changed();
#else
emit markAsChanged();
#endif
}
delete dlg;
}
......@@ -364,11 +356,7 @@ void EmoticonList::editEmoticon()
new QListWidgetItem(QPixmap(emo), dlg->getText(), emoList);
}
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
emit changed();
#else
emit markAsChanged();
#endif
delete dlg;
}
......
......@@ -61,11 +61,7 @@ DeviceAutomounterKCM::DeviceAutomounterKCM(QWidget *parent, const QVariantList &
deviceView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
auto emitChanged = [this] {
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
emit changed();
#else
emit markAsChanged();
#endif
};
connect(automountOnLogin, &QCheckBox::stateChanged, this, emitChanged);
......@@ -110,11 +106,8 @@ void DeviceAutomounterKCM::forgetSelectedDevices()
m_devices->forgetDevice(selected->selectedIndexes()[offset].data(DeviceModel::UdiRole).toString());
}
}
#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
emit changed();
#else
emit markAsChanged();
#endif
}
void DeviceAutomounterKCM::enabledChanged()
......
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