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

List:       kde-core-devel
Subject:    Re: Bug#2729: konqi: icons text position is not constant
From:       David Faure <faure () kde ! org>
Date:       2000-02-23 2:12:58
[Download RAW message or body]

On Wed, Feb 23, 2000 at 01:59:53AM +0000, David Faure wrote:
> OK, almost done porting.
> 
> On Wed, Feb 23, 2000 at 01:01:34AM +0100, Reginald Stadlbauer wrote:
> > I don't know, I have never seen this bug myself. But this looks like bug in
> > QPainter::draw_formattet_text_or_whatever_it_is_called and not directly a bug
> > in QIconView, as the QPainter magic fucntion does the calculation and
> > linebreaking + drawing of QIconViewItem textes. If it still happens after
> > porting I'll have to look at that.
> 
> Well, it's ... different !
> The bug disappeared, but with wordwrap on (I know you don't like it, sorry...)
> the icons are very very far one from the other...

Ha ha ha, I got it. The horizontal distance between two icons
is computed using the full length of the filename !

      +-------------+                  +-------------+
      |             |                  |             |
      |             |                  |             |
      |   T X T     |                  |    T X T    |
      |             |                  |             |
      |             |                  |             |
      +-------------+                  +-------------+

         readme.txt                   some_long_filename
                                     on_more_than_1_line.txt

The distance is computed _as if_ the second file had its 
text on a single line. The fact that it's word_wrapped isn't
taken into account.

BTW, bug 2729 (the one that started this thread) is still there :(

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

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

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