[Patch] KTitleWidget

Aaron J. Seigo aseigo at kde.org
Mon May 14 16:44:41 BST 2007


On Monday 14 May 2007, Urs Wolfer wrote:
> Hi
>
> I would like to add a new widget to kdelibs: KTitleWidget. It's just a very
> lightweight widget. At the moment you can see it in the about and config

i'm very much in favour of having this functionality in libs somewhere, as 
otherwise it is going to be a nightmare to maintain this particular widget as 
it appears in so many places and is visually prominent. it is getting copied 
by app developers (which is a good thing =), so changes to it would require a 
lot of work and result in inconsistencies... so, that bit of support aside:

do we need a full class for it? would it be enough to simply provide a way to 
style a frame properly? that's all this is essentially doing

if we do go for a full on widget, perhaps it would make sense to add the 
ability to set a header label, add an icon, etc...

that would move stuff like

d->headerLabel->setStyleSheet
headerIcon->setPixmap

etc into this new widget would increase the consistency and allow us to, if 
desired, change the way things look down the road.

all the apps seem to be using this in the same general way (bold title, a bit 
of possible description text in regular font, an icon to the side..)

there could still be the setWidget(QWidget* widget) method for those who wish 
to be crazy ;) but perhaps we should offer a truly standardized way of 
creating this display element. thoughts?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070514/1a243619/attachment.sig>


More information about the kde-core-devel mailing list