Fix FTBFS on TQt3

pull/1/head
Timothy Pearson 12 years ago
parent ed5b57040a
commit 06500cd8e9

@ -227,7 +227,10 @@ class ConfigurePyTQt3(ConfigureBase):
if check_class("qassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"):
qtmod_lib = "qassistantclient"
else:
disabled_classes.append("TQAssistantClient")
if check_class("ntqassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"):
qtmod_lib = "qassistantclient"
else:
disabled_classes.append("TQAssistantClient")
return qtmod_lib
@ -615,6 +618,9 @@ def check_module(mname, incfile, ctor, define=None, include_dir=None, lib_dir=No
if check_class(incfile, ctor, define, include_dir, lib_dir, lib, opengl):
pyqt_modules.append(mname)
else:
if check_class("nt" + incfile, ctor, define, include_dir, lib_dir, lib, opengl):
pyqt_modules.append(mname)
def check_class(incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0):
@ -762,8 +768,9 @@ int main(int argc,char **argv)
for (feat, incfile, cname) in plugins:
if not check_plugin(cname, incfile):
f.write("-x TQt_%s\n" % feat)
disabled_classes.append(cname)
if not check_plugin(cname, "nt" + incfile):
f.write("-x TQt_%s\n" % feat)
disabled_classes.append(cname)
f.close()
@ -1104,7 +1111,10 @@ def check_qt_installation(macros):
qglobal = os.path.join(qt_incdir, "qglobal.h")
if not os.access(qglobal, os.F_OK):
sipconfig.error("qglobal.h could not be found in %s." % qt_incdir)
qglobal = os.path.join(qt_incdir, "ntqglobal.h")
if not os.access(qglobal, os.F_OK):
sipconfig.error("qglobal.h or ntqglobal.h could not be found in %s." % qt_incdir)
# Get the TQt version number.
global qt_version
@ -1137,7 +1147,10 @@ def check_qt_installation(macros):
qconfig = os.path.join(qconfigdir, "qconfig.h")
if not os.access(qconfig,os.F_OK):
sipconfig.error("qconfig.h could not be found in %s." % qconfigdir)
qconfig = os.path.join(qconfigdir, "ntqconfig.h")
if not os.access(qconfig,os.F_OK):
sipconfig.error("qconfig.h or ntqconfig.h could not be found in %s." % qconfigdir)
f = open(qconfig)
l = f.readline()

@ -27,7 +27,7 @@
class QextScintilla : QextScintillaBase
{
%TypeHeaderCode
#include <tqextscintilla.h>
#include <qextscintilla.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaAPIs
{
%TypeHeaderCode
#include <tqextscintillaapis.h>
#include <qextscintillaapis.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaBase : TQWidget
{
%TypeHeaderCode
#include <tqextscintillabase.h>
#include <qextscintillabase.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaCommand
{
%TypeHeaderCode
#include <tqextscintillacommand.h>
#include <qextscintillacommand.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaCommandSet
{
%TypeHeaderCode
#include <tqextscintillacommandset.h>
#include <qextscintillacommandset.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaDocument
{
%TypeHeaderCode
#include <tqextscintilladocument.h>
#include <qextscintilladocument.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexer : TQObject
{
%TypeHeaderCode
#include <tqextscintillalexer.h>
#include <qextscintillalexer.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerBash : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerbash.h>
#include <qextscintillalexerbash.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerBatch : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerbatch.h>
#include <qextscintillalexerbatch.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerCPP : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexercpp.h>
#include <qextscintillalexercpp.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerCSharp : QextScintillaLexerCPP
{
%TypeHeaderCode
#include <tqextscintillalexercsharp.h>
#include <qextscintillalexercsharp.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerCSS : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexercss.h>
#include <qextscintillalexercss.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerDiff : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerdiff.h>
#include <qextscintillalexerdiff.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerHTML : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerhtml.h>
#include <qextscintillalexerhtml.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerIDL : QextScintillaLexerCPP
{
%TypeHeaderCode
#include <tqextscintillalexeridl.h>
#include <qextscintillalexeridl.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerJava : QextScintillaLexerCPP
{
%TypeHeaderCode
#include <tqextscintillalexerjava.h>
#include <qextscintillalexerjava.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerJavaScript : QextScintillaLexerCPP
{
%TypeHeaderCode
#include <tqextscintillalexerjavascript.h>
#include <qextscintillalexerjavascript.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerLua : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerlua.h>
#include <qextscintillalexerlua.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerMakefile : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexermakefile.h>
#include <qextscintillalexermakefile.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerPerl : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerperl.h>
#include <qextscintillalexerperl.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerPOV : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerpov.h>
#include <qextscintillalexerpov.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerProperties : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerproperties.h>
#include <qextscintillalexerproperties.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaLexerPython : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerpython.h>
#include <qextscintillalexerpython.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerRuby : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexerruby.h>
#include <qextscintillalexerruby.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerSQL : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexersql.h>
#include <qextscintillalexersql.h>
%End
public:

@ -29,7 +29,7 @@
class QextScintillaLexerTeX : QextScintillaLexer
{
%TypeHeaderCode
#include <tqextscintillalexertex.h>
#include <qextscintillalexertex.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaMacro : TQObject
{
%TypeHeaderCode
#include <tqextscintillamacro.h>
#include <qextscintillamacro.h>
%End
public:

@ -27,7 +27,7 @@
class QextScintillaPrinter : TQPrinter
{
%TypeHeaderCode
#include <tqextscintillaprinter.h>
#include <qextscintillaprinter.h>
%End
public:

Loading…
Cancel
Save