Commit 47590753 authored by Volker Krause's avatar Volker Krause

KCalUtils::secrecyList -> incidenceSecrecyList

Both methods are doing exactly the same, but this will allow us to remove
the now unused duplicate method in KCalUtils.
parent f9041413
......@@ -29,7 +29,7 @@ IncidenceSecrecy::IncidenceSecrecy(Ui::EventOrTodoDesktop *ui)
: mUi(ui)
{
setObjectName(QStringLiteral("IncidenceSecrecy"));
mUi->mSecrecyCombo->addItems(KCalUtils::Stringify::secrecyList());
mUi->mSecrecyCombo->addItems(KCalUtils::Stringify::incidenceSecrecyList());
connect(mUi->mSecrecyCombo, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &IncidenceSecrecy::checkDirtyStatus);
}
......@@ -37,7 +37,7 @@ void IncidenceSecrecy::load(const KCalCore::Incidence::Ptr &incidence)
{
mLoadedIncidence = incidence;
if (mLoadedIncidence) {
Q_ASSERT(mUi->mSecrecyCombo->count() == KCalUtils::Stringify::secrecyList().count());
Q_ASSERT(mUi->mSecrecyCombo->count() == KCalUtils::Stringify::incidenceSecrecyList().count());
mUi->mSecrecyCombo->setCurrentIndex(mLoadedIncidence->secrecy());
if (incidence->type() == KCalCore::Incidence::TypeJournal) {
......
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