GSoC: KMyMoney - Replace functions related to widgets from alkimia

Suraj Kumar Mahto suraj.mahto49 at gmail.com
Thu Jun 10 19:51:16 BST 2021


Hello,
For the first week, I have been trying to replace the existing functions of
kmymoneysettings.cpp with member functions of alkonlinequoteswidget class.
For example :

void KSettingsOnlineQuotes::resetConfig()
{
    Q_D(KSettingsOnlineQuotes);
    QStringList::ConstIterator it;
    QStringList groups = WebPriceQuote::quoteSources();
    // delete all currently defined entries
    for (it = groups.constBegin(); it != groups.constEnd(); ++it) {
        WebPriceQuoteSource(*it).remove();
    }
    // and write back the one's from the reset list
    QList<WebPriceQuoteSource>::ConstIterator itr;
    for (itr = d->m_resetList.constBegin(); itr !=
d->m_resetList.constEnd(); ++itr) {
        (*itr).write();
    }
    loadList();
}
This function can be completely replaced by the usage of
AlkOnlineQuotesWidget::resetConfig()
;
this function on a AlkOnlineQuotesWidget object.

I wanted to ask if I have figured out this in the correct way or not?

Regards
Suraj Kumar Mahto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-finance-apps/attachments/20210611/f248cb4d/attachment.htm>


More information about the Kde-finance-apps mailing list