[uim-commit] r2552 - trunk/qt
ekato at freedesktop.org
ekato at freedesktop.org
Mon Dec 12 18:50:22 PST 2005
Author: ekato
Date: 2005-12-12 18:50:16 -0800 (Mon, 12 Dec 2005)
New Revision: 2552
Modified:
trunk/qt/pref-customwidgets.cpp
Log:
* qt/pref-customwidgets.cpp (CustomSpinBox::CustomSpinBox) : Set
its range at the constructor. Without setting the range before
connect, the value will be set 99 if it is greater than 99.
Modified: trunk/qt/pref-customwidgets.cpp
===================================================================
--- trunk/qt/pref-customwidgets.cpp 2005-12-12 13:30:18 UTC (rev 2551)
+++ trunk/qt/pref-customwidgets.cpp 2005-12-13 02:50:16 UTC (rev 2552)
@@ -80,7 +80,7 @@
//----------------------------------------------------------------------------------------
CustomSpinBox::CustomSpinBox( struct uim_custom *c, QWidget *parent, const char *name)
- : QSpinBox( parent, name ),
+ : QSpinBox(c->range->as_int.min, c->range->as_int.max, 1, parent, name ),
UimCustomItemIface( c )
{
QObject::connect( this, SIGNAL(valueChanged(int)),
More information about the uim-commit
mailing list