trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: August 2012

tqt3 fails to build

From: Mike Howard <mike@...>
Date: Thu, 09 Aug 2012 16:33:43 +0100
Hi All,

The latest tqt3 (pulled from git) now fails to build anybody any ideas? 
The build attempt for me ends like so;

../../include/ntqcommonstyle.h:118:12: note: virtual TQRect 
TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, 
TQStyleControlElementData, TQStyle::ControlElementFlags, 
TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const
../../include/ntqcommonstyle.h:118:12: note:   no known conversion for 
argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ
wood.cpp:1241:22: error: no matching function for call to 
âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, 
const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ
wood.cpp:1241:22: note: candidate is:
In file included from ../../include/ntqwindowsstyle.h:45:0,
                  from wood.h:22,
                  from wood.cpp:10:
../../include/ntqcommonstyle.h:118:12: note: virtual TQRect 
TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, 
TQStyleControlElementData, TQStyle::ControlElementFlags, 
TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const
../../include/ntqcommonstyle.h:118:12: note:   no known conversion for 
argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ
wood.cpp:1248:21: error: no matching function for call to 
âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, 
const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ
wood.cpp:1248:21: note: candidate is:
In file included from ../../include/ntqwindowsstyle.h:45:0,
                  from wood.h:22,
                  from wood.cpp:10:
../../include/ntqcommonstyle.h:118:12: note: virtual TQRect 
TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, 
TQStyleControlElementData, TQStyle::ControlElementFlags, 
TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const
../../include/ntqcommonstyle.h:118:12: note:   no known conversion for 
argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ
wood.cpp: In member function âvirtual TQRect 
NorwegianWoodStyle::subRect(TQStyle::SubRect, const TQWidget*) constâ:
wood.cpp:1286:42: error: no matching function for call to 
âNorwegianWoodStyle::subRect(TQStyle::SubRect&, const TQWidget*&) constâ
wood.cpp:1286:42: note: candidate is:
In file included from wood.h:22:0,
                  from wood.cpp:10:
../../include/ntqwindowsstyle.h:131:12: note: virtual TQRect 
TQWindowsStyle::subRect(TQStyle::SubRect, TQStyleControlElementData, 
TQStyle::ControlElementFlags, const TQWidget*) const
../../include/ntqwindowsstyle.h:131:12: note:   candidate expects 4 
arguments, 2 provided
wood.cpp: In member function âvoid 
NorwegianWoodStyle::drawSemicircleButton(TQPainter*, const TQRect&, int, 
bool, const TQColorGroup&) constâ:
wood.cpp:1365:46: error: no matching function for call to 
âNorwegianWoodStyle::pixelMetric(TQStyle::PixelMetric) constâ
wood.cpp:1365:46: note: candidate is:
In file included from wood.h:22:0,
                  from wood.cpp:10:
../../include/ntqwindowsstyle.h:110:9: note: virtual int 
TQWindowsStyle::pixelMetric(TQStyle::PixelMetric, 
TQStyleControlElementData, TQStyle::ControlElementFlags, const 
TQWidget*) const
../../include/ntqwindowsstyle.h:110:9: note:   candidate expects 4 
arguments, 1 provided
make[3]: *** [.obj/debug-shared-mt/wood.o] Error 1
make[3]: Leaving directory `/root/tqt3/examples/themes'
make[2]: *** [sub-themes] Error 2
make[2]: Leaving directory `/root/tqt3/examples'
make[1]: *** [sub-examples] Error 2
make[1]: Leaving directory `/root/tqt3'
make: *** [init] Error 2

There are apparent errors that precede the above snippet but I'll 
investiage further.

Cheers,
Mike.
-- 
Any question is easy if you know the answer!