[texworks] r592 breaks compilation on Xubuntu 8.10 w/ gcc 4.3.2 and Qt 4.4.3
Jonathan Kew
jfkthame at googlemail.com
Mon Apr 5 11:27:56 CEST 2010
On 5 Apr 2010, at 10:15, Peter Wüsten wrote:
> Dear all,
>
> I just SVNed to r592, and make stops with the following error:
>
> In file included from src/TWScriptable.cpp:23:
> src/TWScriptAPI.h: In member function »QVariant TWScriptAPI::getInt(QWidget*, const QString&, const QString&, int, int, int, int)«:
> src/TWScriptAPI.h:109: Fehler: »getInt« ist kein Element von »QInputDialog«
> src/TWScriptAPI.h: In member function »QVariant TWScriptAPI::getDouble(QWidget*, const QString&, const QString&, double, double, double, int)«:
> src/TWScriptAPI.h:115: Fehler: »getInt« ist kein Element von »QInputDialog«
> make: *** [obj/TWScriptable.o] Fehler 1
>
> which translates to
>
> In file included from src/TWScriptable.cpp:23:
> src/TWScriptAPI.h: In member function »QVariant TWScriptAPI::getInt(QWidget*, const QString&, const QString&, int, int, int, int)«:
> src/TWScriptAPI.h:109: Error: »getInt« is not an element of »QInputDialog«
> src/TWScriptAPI.h: In member function »QVariant TWScriptAPI::getDouble(QWidget*, const QString&, const QString&, double, double, double, int)«:
> src/TWScriptAPI.h:115: Error: »getInt« is not an element of »QInputDialog«
> make: *** [obj/TWScriptable.o] Error 1
>
> Is this error related to my using a relatively old version of Qt?
Yes, apparently getInt() is new in Qt 4.5. It should now build (this function won't be available, of course).
Your error messages also highlighted a typo in getDouble() - thanks.
JK
More information about the texworks
mailing list