Angus Leeming wrote:
> Jürgen, LengthCombo derives publicly from QComboBox. I think therfore that
> this isn't needed:
>
> +void LengthCombo::setCurrentItem(int item)
> +{
> +       QComboBox::setCurrentItem(item);
> +}
>
> The code will just do the right thing.

I'd guess so too, but then I get the error below. Seems that the function is 
somehow overwritten by Lengthcombo::setCurrentItem(LyXLength::unit unit) and 
has to be reimplemented.

QBox.C: In member function `virtual void QBox::update_contents()':
QBox.C:130: error: invalid conversion from `int' to `LyXLength::UNIT'
QBox.C:130: error:   initializing argument 1 of `virtual void
   LengthCombo::setCurrentItem(LyXLength::UNIT)'
QBox.C:147: error: invalid conversion from `int' to `LyXLength::UNIT'
QBox.C:147: error:   initializing argument 1 of `virtual void
   LengthCombo::setCurrentItem(LyXLength::UNIT)'
make[5]: *** [QBox.lo] Fehler 1

Regards,
Jürgen.

Reply via email to