Of course, if you would have too many problems, you should perhaps finish the code working with the normal widget. You could try later to change it into a unit widget. (Anyway in KWord, nearly not any formatting is using the unit widget, so you do not need to use it if it does not work.) Have a nice day! On Tuesday 31 August 2004 22:50, Nicolas Goutte wrote: > As you have not shown how the linker is called, it is diffuclt to tell if > libkofficecore is included in the list of libraries to link against. > > On Tuesday 31 August 2004 22:34, p.stirnweiss_koffice@bluewin.ch wrote: > > >-- Message original -- > > > > From: Nicolas Goutte > > > > >To: For developer's discussion about KOffice > > > Date: Tue, 31 Aug 2004 20:59:08 +0200 > > >Subject: Re: Shadow distance type > > >Reply-To: For developer's discussion about KOffice > > > > > > > > >On Tuesday 31 August 2004 20:51, p.stirnweiss_koffice@bluewin.ch wrote: > > >> >-- Message original -- > > >> > > >> From: Nicolas Goutte > > >> > > >> >To: For developer's discussion about KOffice > > >> > Date: Tue, 31 Aug 2004 20:20:31 +0200 > > >> >Subject: Re: Shadow distance type > > >> >Reply-To: For developer's discussion about KOffice > > >> > > > >> > > > >> > > > >> >Please use double, as the unit widgets in KOffice are based on > > >> > double. > > >> > > > >> >And I would perhaps not change it to KDoubleNumInput but the > > >> > corresponding > > >> > > > >> >unit widget. > > >> > > >> I meant a KDoubleSpinBox but I guess this is not the proper one > > >> either. > > > > > >Is > > > > > >> the corresponding unit widget to be found in KOffice? or KDE? > > > > > >Sorry! By "unit widgets" I meant the widgets defined in: > > >koffice/lib/kofficeui/koUnitWidgets.h > > > > > >So I suppose that you would need a KoUnitDoubleSpinBox > > > > > >(Unit widgets are supposed to be used everywhere, but the implementation > > >was > > >closely related to their use in Karbon. I have tried to make the class > > > more > > > > > >general (always based on points) but it is not really finished.) > > > > Well, I get this on linking with KoUnitDoubleSpinBox : > > > > koDecoTab.o(.text+0x7c0): In function > > `koDecoTab::koDecoTab[not-in-charge](QWidget*, char const*)': > > */home/test/src/koDecoTab.cpp:90: undefined reference to > > `KoUnitDoubleSpinBox::KoUnitDoubleSpinBox[in-charge](QWidget*, double, > > double, double, double, KoUnit::Unit, unsigned, char const*)' > > *koDecoTab.o(.text+0x194c): In function > > `koDecoTab::koDecoTab[in-charge](QWidget*, char const*)': > > */home/test/src/koDecoTab.cpp:90: undefined reference to > > `KoUnitDoubleSpinBox::KoUnitDoubleSpinBox[in-charge](QWidget*, double, > > double, double, double, KoUnit::Unit, unsigned, char const*)' > > *koDecoTab.o(.text+0x244e): In function `koDecoTab::shadowChangedSlot()': > > > > */home/test/src/koDecoTab.cpp:184: undefined reference to > > `KoUnitDoubleSpinBox::value() const' > > *collect2: ld returned 1 exit status > > *gmake[2]: *** [test] Error 1 > > *gmake[2]: Target `all' not remade because of errors. > > *gmake[1]: *** [all-recursive] Error 1 > > *gmake: *** [all] Error 2 > > > > I might be missing something in the Makefile. I have not got this problem > > with a KDoubleSpinBox. Only change between the two trials was this. > > > > Pierre > > (...) > > _______________________________________________ > koffice-devel mailing list > koffice-devel@mail.kde.org > https://mail.kde.org/mailman/listinfo/koffice-devel _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org https://mail.kde.org/mailman/listinfo/koffice-devel