comboboxes - sorted lists in KDE4 - idea
David Faure
faure at kde.org
Thu Feb 22 12:35:55 GMT 2007
On Thursday 22 February 2007, Thomas Zander wrote:
> More importantly; there is no generic method in KDE to store items that can be
> translated in a combobox and get the untranslated 'key' back when a user
> selects something. This is the main reason people insert items in a static
> ordering.
There is in Qt4.
void QComboBox::insertItem ( int index, const QString & text, const QVariant & userData = QVariant() );
QVariant QComboBox::itemData ( int index, int role = Qt::UserRole ) const;
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list