[Kmymoney-devel] Review Request: homepage: extend accounts table with additional columns to reflect online-status

Thomas Baumgart thb at net-bembel.de
Mon Nov 19 12:49:52 UTC 2012



On Monday 19 November 2012 08:54:04 mk-lists at email.de wrote:

> Hi Alvaro,
> 
> > Can you make it so that it's off by default and only available if at least
> > one account has an online link?
> as I discussed with David I'll make it opt-in. Each user should be able to
> decided whether screen space is invested for that or not. Also I'll get rid
> of the string "Status" in the table header and replace it with a smaller
> icon to indicate that the column is related to the online-status.
> 
> Last night I was trying to figure out how I could access the checkbox-widget
> which I created anew in the homepage settings dialog. But, since I have
> never used those *.ui files I couldn't yet grasp how such a dialog item is
> actually accessed… :-(
> 
> 	Could you explain to me briefly how the content of the
> "Configure/Home/Information display/Show Account Limit Information" is
> actually read out in the application, please?! I've been checking out
> ksettingshome.cpp but couldn't get any indication as to where to search on…
> Looks like I must be blind to not to see the obvious. (I guess much code
> gets auto-generated, which is why I can't get a foot into the door without
> studying QT designer… which I wanted to avoid up to now since I am quite
> happy with coding dialogs directly in my programs' source code without the
> need for ui files.)

Well, it's not a Qt designer feature. It's KConfigXT in combination with Qt 
designer and a lot of magic behind the scenes. Check out 
http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT to understand 
how it works.

The files you want to look at are:

kmymoney/kmymoney.kcfg
kmymoney/dialogs/settings/ksettingshomedecl.ui

and the usage of

 KMyMoneyGlobalSettings::yourOption()


Does that give you enough to continue? If not, let me know.

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
New processes are created by other processes, just like new humans.
New humans are created by other humans, of course, not by processes.
(Unix System Administrator Handbook)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20121119/44978237/attachment.sig>


More information about the KMyMoney-devel mailing list