On 02/26/2010 12:05 PM, Jean-Marc Lasgouttes wrote:
Guenter Milde<mi...@users.berlios.de> writes:
Actually, I'd prefer to move the language setting out of the character
dialogue completely. Language is an important semantic feature, while all
other settings in this dialogue concern presentational markup.
It makes sense.
Yes, FWIW this the very reason why I created the language model in
GuiApplication a while ago. Actually an old goal of mine was to use the
language model in other dialogs. See this FIXME in GuiCharacter.cpp:129 :
static QList<LanguagePair> languageData()
{
QList<LanguagePair> list;
// FIXME (Abdel 14/05/2008): it would be nice if we could use this
model
// directly in the language combo; but, as we need also the 'No
Change' and
// 'Reset' items, this is not possible right now. Separating those two
// entries in radio buttons would be a better GUI IMHO.
QAbstractItemModel * language_model = guiApp->languageModel();