[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: comboboxes - sorted lists in KDE4 - idea
From: David Faure <faure () kde ! org>
Date: 2007-02-22 12:35:55
Message-ID: 200702221335.56027.faure () kde ! org
[Download RAW message or body]
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@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic