[uim-commit] r324 - trunk/qt/uim-kdehelper/src/pref
kzk@freedesktop.org
kzk@freedesktop.org
Tue Jan 18 04:36:10 PST 2005
Author: kzk
Date: 2005-01-18 04:36:07 -0800 (Tue, 18 Jan 2005)
New Revision: 324
Modified:
trunk/qt/uim-kdehelper/src/pref/uim-pref-qt.cpp
Log:
* qt/uim-kdehelper/src/pref/uim-pref-qt.cpp
- handle defaultly selected symbol
- fix the bug of combobox-insertion index
Modified: trunk/qt/uim-kdehelper/src/pref/uim-pref-qt.cpp
===================================================================
--- trunk/qt/uim-kdehelper/src/pref/uim-pref-qt.cpp 2005-01-18 12:06:04 UTC (rev 323)
+++ trunk/qt/uim-kdehelper/src/pref/uim-pref-qt.cpp 2005-01-18 12:36:07 UTC (rev 324)
@@ -280,14 +280,14 @@
QLabel *label = new QLabel( _FU8(custom->label), hbox );
CustomChoiceCombo *choiceCombo = new CustomChoiceCombo( custom, hbox );
- char *default_symbol = NULL;
+ char *default_symbol = custom->value->as_choice->symbol;
int default_index = -1;
int index = 0;
struct uim_custom_choice **item = custom->range->as_choice.valid_items;
while( *item )
{
int count = choiceCombo->count();
- choiceCombo->insertItem( _FU8((*item)->label), count - 1 ); // insert item at last
+ choiceCombo->insertItem( _FU8((*item)->label), count ); // insert item at last
if( QString::compare( default_symbol, (*item)->symbol ) == 0 )
default_index = index;
@@ -306,13 +306,11 @@
void UimPrefDialog::addCustomTypeOrderedList( QVBox *vbox, struct uim_custom *custom )
{
// FIXME: not implemented yet
- ;
}
void UimPrefDialog::addCustomTypeKey( QVBox *vbox, struct uim_custom *custom )
{
// FIXME: not implemented yet
- ;
}
/*
More information about the Uim-commit
mailing list