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

List:       kde-panel-devel
Subject:    Review Request: Improve rendering of Plasma Image-Wallpaper list
From:       Darío Andrés <andresbajotierra () gmail ! com>
Date:       2010-03-28 16:36:48
Message-ID: 20100328163648.12732.48453 () localhost
[Download RAW message or body]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3417/
-----------------------------------------------------------

Review request for Plasma.


Summary
-------

Update BackgroundDelegate to use QTextDocument in order to improve text layouting.
Now, all the text is properly centered and long titles are wordwrapped correctly, \
maximizing the space usage.

Compare http://bugsfiles.kde.org/attachment.cgi?id=42291 (from the bug report) and \
the attached screenshot

I also cached some values to avoid a lot of calculations (useless as the ratio is not \
                going to change)
- Should some other values be cached too ? (the smallest font size?)


This addresses bug 232348.
    https://bugs.kde.org/show_bug.cgi?id=232348


Diffs
-----

  svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgrounddelegate.h \
1107102   svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/backgrounddelegate.cpp \
1107102 

Diff: http://reviewboard.kde.org/r/3417/diff


Testing
-------

I have tested it and it works OK.
There could be a minimal performance drop (as I guess that using QTextDocument takes \
more time than a few drawText() and QRect constructor calls); however I couldn't \
really notice it


Screenshots
-----------

Layouting improved
  http://reviewboard.kde.org/r/3417/s/344/


Thanks,

Darío

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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