GSoC '21 KMyMoney : Identification Selector(QComboBox) unable to make work.

Suraj Kumar Mahto suraj.mahto49 at gmail.com
Mon Aug 16 15:16:53 BST 2021


I read up the documentation. After the changes, the widget still doesn't
seem to work. Can you also please check the ui file if you are free since I
have used Qt Designer first time after watching tutorials.

Regards
Suraj Kumar Mahto

On Mon, Aug 16, 2021 at 2:26 AM Thomas Baumgart via Kde-finance-apps <
kde-finance-apps at kde.org> wrote:

> Suraj,
>
>   m_editIdSelector->currentData().toInt() !=
> static_cast<int>(m_currentItem.idSelector())
>
> does not work, as m_editIdSelector->currentData() returns the models
> Qt::Display role
> which does not seem to be an int but a string. It might be better to use
>
>   m_editIdSelector->currentIndex() !=
> static_cast<int>(m_currentItem.idSelector())
>
> Same here:
>
>
> m_currentItem.setIdSelector(static_cast<AlkOnlineQuoteSource::IdSelector>(m_editIdSelector->currentData().toInt()));
>
> which should be
>
>
> m_currentItem.setIdSelector(static_cast<AlkOnlineQuoteSource::IdSelector>(m_editIdSelector->currentIndex()));
>
> Hope that helps (the above written w/o compiling it, so it might have
> bugs).
> Read https://doc.qt.io/qt-5/qcombobox.html#currentIndex-prop for more
> details.
>
> Thomas
>
>
> On Sonntag, 15. August 2021 19:33:38 CEST Suraj Kumar Mahto via
> Kde-finance-apps wrote:
>
> > Hello, I am stuck for few days to make the IdSelector combo box work. The
> > IdNumber entry works fine. I have tried to debug the same to find out the
> > possible cause but wasn't able to figure it out.
> > I have pushed the respective changes to
> > https://invent.kde.org/surajsloth/alkimia/-/tree/gsoc21 Please direct me
> > where I am going wrong.
> >
> > Also, there isn't any enum type in AlkOnlineQuote::Errors::Type for the
> two
> > members added. So, I need to add the same. Please correct me if I am
> wrong.
> >
> > Regards
> > Suraj Kumar Mahto
> >
>
> --
>
> Regards
>
> Thomas Baumgart
>
> https://www.signal.org/       Signal, the better WhatsApp
> -------------------------------------------------------------
> Q: What did the drummer name his twin daughters? A: Anna one ... Anna Two
> ...
> -------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-finance-apps/attachments/20210816/ba9a95f3/attachment.htm>


More information about the Kde-finance-apps mailing list