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 ab044e73 authored by Laurent Montel's avatar Laurent Montel 😁

Convert to new connect api

parent d845d507
......@@ -55,18 +55,13 @@ KCMTranslations::KCMTranslations(QWidget *parent, const QVariantList &args)
m_config = KConfigGroup(KSharedConfig::openConfig(configFile), "Translations");
// Set up UI to respond to user changing the translation selection
connect(m_ui->m_selectTranslations, &KActionSelector::added,
this, &KCMTranslations::changedTranslationsSelected);
connect(m_ui->m_selectTranslations, &KActionSelector::removed,
this, &KCMTranslations::changedTranslationsAvailable);
connect(m_ui->m_selectTranslations, &KActionSelector::movedUp,
this, &KCMTranslations::changedTranslationsSelected);
connect(m_ui->m_selectTranslations, &KActionSelector::movedDown,
this, &KCMTranslations::changedTranslationsSelected);
connect(m_ui->m_selectTranslations, &KActionSelector::added, this, &KCMTranslations::changedTranslationsSelected);
connect(m_ui->m_selectTranslations, &KActionSelector::removed, this, &KCMTranslations::changedTranslationsAvailable);
connect(m_ui->m_selectTranslations, &KActionSelector::movedUp, this, &KCMTranslations::changedTranslationsSelected);
connect(m_ui->m_selectTranslations, &KActionSelector::movedDown, this, &KCMTranslations::changedTranslationsSelected);
// If user clicks the Install button, trigger distro specific install routine
connect(m_ui->m_buttonTranslationsInstall, &QPushButton::clicked,
this, &KCMTranslations::installTranslations);
connect(m_ui->m_buttonTranslationsInstall, &QPushButton::clicked, this, &KCMTranslations::installTranslations);
// Hide the Install button, this will be activated by those distros that support this feature.
m_ui->m_buttonTranslationsInstall->setHidden(true);
......
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