From kde-devel Mon Oct 28 22:39:35 2002 From: Carsten Pfeiffer Date: Mon, 28 Oct 2002 22:39:35 +0000 To: kde-devel Subject: Re: KComboBox: adding a separator? X-MARC-Message: https://marc.info/?l=kde-devel&m=103584409918102 -----BEGIN PGP SIGNED MESSAGE----- On Sunday 27 October 2002 13:53, Michael Schuerig wrote: > It's in-between read-only and editable. The initial list only contains > phone numbers taken from the addressbook. On top of that I want to put > a list of recently used numbers, set off by a separator. A recently > used number can either be one chosen from the list by the user or one > entered explicitly. Recent numbers should not be handled by the > ComboBox, I'll do that myself. Thus, the ComboBox has a NoInsertion > policy. Also, it should obviously not be possibly to select the > separator. > I'm surprised that I can't just call comboBox->insertSeparator(). Does > it conflict with any GUI style guide? You could do that, but you would have to implement that method first :} You could add that functionality to KComboBox. I think you'd need a derived QListBox that prohibits selection of the separator-item. I'm happy to help out a bit if you want to implement this, but I don't have the time to do it myself, currently. Cheers Carsten Pfeiffer -----BEGIN PGP SIGNATURE----- iQEVAwUBPb28p6WgYMJuwmZtAQHpywf5AfX122fBgS6Eg+/BtmenarNibjj1ZnVD ln7FJWPHcy1aADzu9yUDEDPuQAPT81My+L718pswfJYPEPsynhdXBnji41i/+2Zx XHyDcqNtO8rGnPKwUCS5I6J/m2n8t3bX3Ak+lTyQt4vRK3h+K7DbZ7HJoHaTLoV0 okA2CFAvOBILBtVXzouTejoJhYVmNE7bFq0eqnkC+XyA/p1UQ3HYYsrxZommQ8Ec ouFpdDNvDpBzhluPFXSGc5Ju8xiGgn8XJFh8XIKSeu5RQMxSsS682a/vDmJRt7Ia 3zOM4htg0Nq7iV5cZ0ImUXA1G4O6m3EN8g5guAF0A5UkkIkFNoxXNw== =n/ze -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<