[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-finance-apps
Subject:    GSoC: KMyMoney - Replace functions related to widgets from alkimia
From:       Suraj Kumar Mahto <suraj.mahto49 () gmail ! com>
Date:       2021-06-10 18:51:35
Message-ID: CAEDvbQBwBjaeuHfYzdTh7e9+M5h93ML6wmLxe9QucC28NVoVZw () mail ! gmail ! com
[Download RAW message or body]

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

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hello,<br>For the first week, I have been trying to replace the \
existing functions of kmymoneysettings.cpp with member functions of <font \
size="2"><span style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:t \
ransparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599">alkonlinequoteswidget \
class. For example : <br><br><span style="font-family:monospace">void \
KSettingsOnlineQuotes::resetConfig()<br>{<br>      Q_D(KSettingsOnlineQuotes);<br>    \
QStringList::ConstIterator it;<br>      QStringList groups = \
WebPriceQuote::quoteSources();<br>      // delete all currently defined entries<br>   \
for (it = groups.constBegin(); it != groups.constEnd(); ++it) {<br>            \
WebPriceQuoteSource(*it).remove();<br>      }<br>      // and write back the \
one&#39;s from the reset list<br>      \
QList&lt;WebPriceQuoteSource&gt;::ConstIterator itr;<br>      for (itr = \
d-&gt;m_resetList.constBegin(); itr != d-&gt;m_resetList.constEnd(); ++itr) {<br>     \
(*itr).write();<br>      }<br>      \
loadList();<br>}<br></span></span></font></div><div><font size="2"><span \
style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:transparent;font \
-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><font face="arial,sans-serif">This function can be \
completely replaced by the usage of </font>AlkOnlineQuotesWidget::resetConfig() \
;<br></span></span></font></div><div><font size="2"><span \
style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:transparent;font \
-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><font face="arial,sans-serif">this function on a \
AlkOnlineQuotesWidget object.<br><br></font></span></span></font></div><div><font \
size="2"><span style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:t \
ransparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><font face="arial,sans-serif">I wanted to ask if I have \
figured out this in the correct way or \
not?</font><br></span></span></font></div><div><font size="2"><span \
style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:transparent;font \
-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><br></span></span></font></div><div><font \
size="2"><span style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:t \
ransparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><font face="arial,sans-serif">Regards<br>Suraj Kumar \
Mahto</font><br></span></span></font></div><div><font size="2"><span \
style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:transparent;font \
-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"><br></span></span></font></div><font size="2"><span \
style="font-family:Inter,sans-serif;color:rgb(0,0,0);background-color:transparent;font \
-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" \
id="gmail-docs-internal-guid-d5e8f431-7fff-50d1-c72c-e959f708b599"><span \
style="font-family:monospace"></span></span></font></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic