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

List:       kde-devel
Subject:    Re: KComboBox: adding a separator?
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2002-10-26 21:06:24
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----

On Saturday 26 October 2002 22:48, Michael Schuerig wrote:

> I'd like to insert a separator into a KComboBox. The purpose is, to
> separate several recently chosen items at the top from the full
> alphabetical listing further down. I'm a newbie, thus I may well be
> missing more than a thing, but I don't see how to do this.

Are you talking about a read-only or editable combobox? In the latter case, 
you should probably use a separator-like text, i.e. "----------------------".

Otherwise, you can use the listBox() method to access the internally used 
QListBox and insert anything into it, i.e. QListBoxItems with a pixmap or a 
custom paint-method.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPbsD0KWgYMJuwmZtAQEGxAf/QSxq7nhn6VAWEtYTTwNq+nmD7hdaWA3b
gZBukVWrurZKuGX//juRM+uTe2zZxHncgP2qkDiNtdMPzAcc7P43LGveuSgVlpUS
Fxv2I479fi10dDU0r3SNR/Tpc0l5vfJoqz6w0XZxmbD4H5MEH/eFG0sJCZ7NYm+E
SRWW/z8LQIpEYg8nQoXvSi3/YrX2FhQUnmbSAH49PEKwOpaZ+hPyiDNNCwxcTPw3
lzeG6caMJUq4Dba7VZcnkX5iLpAegMA7LvQha43dhmp73OI44u8vKDdXWufyk+pA
CQSLLnA85grMP3D61A00rVzlsQZjbBqubpEPSXQA8Fe7vLbe2+U+5Q==
=xx/7
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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