[Kmymoney-devel] Overly wide "Details" column in ledger

Thomas Baumgart thb at net-bembel.de
Tue Jan 7 10:06:04 UTC 2014


Hi all,

On Monday 06 January 2014 10:26:04 Cristian Oneț wrote:

> 2013/12/26 Thomas Baumgart <thb at net-bembel.de>:
> > Hi all,
> > 
> > On Thursday 05 December 2013 08:27:36 Cristian Oneț wrote:
> >> It's definitely caused by this commit [1]. I'll check if it can be
> >> caused by whitespace as Allan suggests, then that case can be solved.
> >> But if you have a really long details string in some transaction then
> >> I guess the scrollbar is appropriate.
> > 
> > Not sure. I do see a scrollbar here, but using it jumps by the column and
> > not smooth (maybe just another setting for the widget that is missing).
> > 
> > The problem Marko sees is caused by the following change at the very end
> > of
> > "void Register::resize(int col, bool force)"
> > 
> >   from:  setColumnWidth(col, w);
> >   to:    setColumnWidth(col, qMax(w, minimumColumnWidth(col)));
> > 
> > While I agree with all the other changes contained in this commit, this
> > one
> > annoys me, as it is mostly due to wide memo fields. I do give an example
> > that I have here (and displaying that all in one line is just nonsense):
> > 
> > SEPA-BASISLASTSCHRIFT EREF+ B##########V######### 41 MREF+
> > ############-#### CRED+ DE36ZZZ########### S VWZ+ sonstige Zahlung KNR:2
> > ##########/faellig 13.11.20 13 Netto ##,##faellig 13.11.2013 Netto ##,##
> > 
> > That's 205 chars. Even if using the full 1920 width I cannot display all
> > of
> > the above on the screen. My feeling here is that we need a more modern
> > widget to display all of the transaction data. It should certainly be
> > based on the MVD model which gives us more control over things than we
> > have today.
> > 
> > I would really like to revert that one line shown above to what it was
> > before but want to hear some comments from others before (esp. Crisitan
> > who made the change).
> 
> Hi Thomas,
> 
> Sorry for the late reply, I was away for a few weeks. The current
> behavior annoys me as well so please improve it (or revert it). I
> intended to but haven't had time to do so. By improvement I would
> suggest improving the value returned by minimumColumnWidth(col) for
> the details column or you can just revert it if you think this
> approach would not work in all cases.

Reverted that one change back to the original. That should solve the annoyance 
while keeping the other improvements.

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
I can break things just fine by myself,
I don't need (KDE) 4.2 to help me. -- Bill Suit
-------------------------------------------------------------
-------------- 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/20140107/63df5b8e/attachment.sig>


More information about the KMyMoney-devel mailing list