security price entry question
Thomas Baumgart
thb at net-bembel.de
Sun Sep 4 14:44:52 BST 2022
Jack,
On Montag, 29. August 2022 21:05:30 CEST Jack via KMyMoney-devel wrote:
> The edit security dialog has a dropdown for price entry: "Price per
> share," "Total for all shares," or "(default)". Where is the default
> value set? I've been hunting, but have not been able to find it.
> Even hunting in the code for "price per share" I only find two
> references (new account dialog and new investment wizard.)
If I understand this correct, you are looking for the code in
ActivityPrivate::priceMode() (this is for master). At the end
of that method it has the following section:
// if mode is still <Price> then use that
if (mode == eDialogs::PriceMode::Price) {
mode = eDialogs::PriceMode::PricePerShare;
}
where eDialogs::PriceMode::Price is the default.
> Thanks for any pointers.
Hope that helps.
--
Regards
Thomas Baumgart
-------------------------------------------------------------
To the optimist, the glass is half full. To the pessimist,
the glass is half empty. To the engineer, the glass is
twice as big as it needs to be.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20220904/62518578/attachment.sig>
More information about the KMyMoney-devel
mailing list