trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2011

Re: [trinity-devel] Constructor - kpowersave - countdown_Dialog.cpp (I can't figure this one out...)

From: Serghei Amelian <serghei@...>
Date: Wed, 16 Mar 2011 19:01:05 +0200
On Wednesday 16 March 2011 18:37:58 David C. Rankin wrote:
> Tim, Serghei,
>
>    I ran into another constructor error on kpowersave in
> countdown_Dialog.cpp. This one isn't quite the same as the normal
> class::class problem (the error looks the same, but the code doesn't)
>
> Here is the error:

[...]

> /home/david/tblds/trinity-app-kpowersave/src/kpowersave/src/countdown_Dialo
>g.h:23:7: error: forward declaration of ‘struct KProgress’
> /home/david/tblds/trinity-app-kpowersave/src/kpowersave/src/countdown_Dialo
>g.cpp:174:73: error: no matching function for call to
> ‘QGridLayout::addMultiCellWidget(KProgress*&, int, int, int, int)’
> /opt/qt/include/qlayout.h:332:10: note: candidate is: void
> QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int)
> make[2]: ***

[...]

Attach here "countdown_Dialog.cpp" and "countdown_Dialog.h"


-- 
Serghei