Fix inadvertent tq changes.

(cherry picked from commit c8388916e4)
v3.5.13-sru
Darrell Anderson 12 years ago committed by Slávek Banko
parent 8a79684ebf
commit 90ad5249f5

@ -207,6 +207,6 @@ void KFileDnDDetailView::setDnDEnabled( bool useDnD ){
viewport()->setAcceptDrops( useDnD ); viewport()->setAcceptDrops( useDnD );
} }
//----------------------------------------------- //-----------------------------------------------
#ifndef NO_INCLUDE_TQMOCFILES #ifndef NO_INCLUDE_MOCFILES
#include "kfilednddetailview.moc" #include "kfilednddetailview.moc"
#endif #endif

@ -189,6 +189,6 @@ bool KFileDnDIconView::acceptDrag(TQDropEvent* e ) const {
|| e->action() == TQDropEvent::Link ); || e->action() == TQDropEvent::Link );
} }
//----------------------------------------------- //-----------------------------------------------
#ifndef NO_INCLUDE_TQMOCFILES #ifndef NO_INCLUDE_MOCFILES
#include "kfiledndiconview.moc" #include "kfiledndiconview.moc"
#endif #endif

@ -1733,7 +1733,7 @@
<cstring>mocdir_label</cstring> <cstring>mocdir_label</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>TQMOC files:</string> <string>MOC files:</string>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
<cstring>mocdir_url</cstring> <cstring>mocdir_url</cstring>

@ -691,7 +691,7 @@ void Project::save( bool onlyProjectFile )
contents += contents +=
"unix {\n" "unix {\n"
" UI_DIR = .ui\n" " UI_DIR = .ui\n"
" TQMOC_DIR = .moc\n" " MOC_DIR = .moc\n"
" OBJECTS_DIR = .obj\n" " OBJECTS_DIR = .obj\n"
"}\n"; "}\n";
} }

@ -12,7 +12,7 @@ http://freehackers.org/~tnagy/bksys_manual.html
CONFIGURING AND COMPILING THE PROJECT(S) CONFIGURING AND COMPILING THE PROJECT(S)
SCONS TIPS SCONS TIPS
TQMOC PROCESSING MOC PROCESSING
SCONS MINIMUM DISTRIBUTION SCONS MINIMUM DISTRIBUTION
MORE TIPS MORE TIPS
@ -61,7 +61,7 @@ checkinstall --fstrans=no --nodoc scons install
To make scons run (much) faster, consult ./addons/README in bksys To make scons run (much) faster, consult ./addons/README in bksys
------------------------------------------ ------------------------------------------
TQMOC PROCESSING MOC PROCESSING
In qt programs, when a header 'foo.h' contains a class that has In qt programs, when a header 'foo.h' contains a class that has
Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT

@ -12,7 +12,7 @@ http://freehackers.org/~tnagy/bksys_manual.html
CONFIGURING AND COMPILING THE PROJECT(S) CONFIGURING AND COMPILING THE PROJECT(S)
SCONS TIPS SCONS TIPS
TQMOC PROCESSING MOC PROCESSING
SCONS MINIMUM DISTRIBUTION SCONS MINIMUM DISTRIBUTION
MORE TIPS MORE TIPS
@ -61,7 +61,7 @@ checkinstall --fstrans=no --nodoc scons install
To make scons run (much) faster, consult ./addons/README in bksys To make scons run (much) faster, consult ./addons/README in bksys
------------------------------------------ ------------------------------------------
TQMOC PROCESSING MOC PROCESSING
In qt programs, when a header 'foo.h' contains a class that has In qt programs, when a header 'foo.h' contains a class that has
Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT Q_SIGNALS and Q_SLOTS, then 'foo.h' must contain the macro Q_OBJECT

@ -46,7 +46,7 @@ TQStringList CppImplementationWidget::createClassFiles()
TQString template_h = "#ifndef $DEFTEXT$_H\n#define $DEFTEXT$_H\n\n#include \"$BASEINCLUDE$\"\n\nclass $CLASSNAME$: public $BASECLASSNAME$ {\nQ_OBJECT\nTQ_OBJECT\npublic:\n $CLASSNAME$(TQWidget *parent = 0, const char *name = 0);\n};\n\n#endif\n"; TQString template_h = "#ifndef $DEFTEXT$_H\n#define $DEFTEXT$_H\n\n#include \"$BASEINCLUDE$\"\n\nclass $CLASSNAME$: public $BASECLASSNAME$ {\nQ_OBJECT\nTQ_OBJECT\npublic:\n $CLASSNAME$(TQWidget *parent = 0, const char *name = 0);\n};\n\n#endif\n";
TQString template_cpp = "#include \"$CLASSINCLUDE$\"\n\n$CLASSNAME$::$CLASSNAME$(TQWidget *parent, const char *name)\n :$BASECLASSNAME$(parent, name)\n{\n}\n"; TQString template_cpp = "#include \"$CLASSINCLUDE$\"\n\n$CLASSNAME$::$CLASSNAME$(TQWidget *parent, const char *name)\n :$BASECLASSNAME$(parent, name)\n{\n}\n";
if ( m_part->project() ->options() == KDevProject::UsesAutotoolsBuildSystem ) if ( m_part->project() ->options() == KDevProject::UsesAutotoolsBuildSystem )
template_cpp += "\n#include \"$TQMOCINCLUDE$\"\n"; template_cpp += "\n#include \"$MOCINCLUDE$\"\n";
TQFileInfo formInfo( m_formName ); TQFileInfo formInfo( m_formName );
template_h.replace( TQRegExp( "\\$BASEINCLUDE\\$" ), formInfo.baseName() + ".h" ); template_h.replace( TQRegExp( "\\$BASEINCLUDE\\$" ), formInfo.baseName() + ".h" );
@ -57,7 +57,7 @@ TQStringList CppImplementationWidget::createClassFiles()
template_cpp.replace( TQRegExp( "\\$CLASSINCLUDE\\$" ), fileNameEdit->text() + ".h" ); template_cpp.replace( TQRegExp( "\\$CLASSINCLUDE\\$" ), fileNameEdit->text() + ".h" );
template_cpp.replace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() ); template_cpp.replace( TQRegExp( "\\$CLASSNAME\\$" ), classNameEdit->text() );
template_cpp.replace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName ); template_cpp.replace( TQRegExp( "\\$BASECLASSNAME\\$" ), m_baseClassName );
template_cpp.replace( TQRegExp( "\\$TQMOCINCLUDE\\$" ), fileNameEdit->text() + ".moc" ); template_cpp.replace( TQRegExp( "\\$MOCINCLUDE\\$" ), fileNameEdit->text() + ".moc" );
template_h = FileTemplate::read( m_part, "h" ) + template_h; template_h = FileTemplate::read( m_part, "h" ) + template_h;
template_cpp = FileTemplate::read( m_part, "cpp" ) + template_cpp; template_cpp = FileTemplate::read( m_part, "cpp" ) + template_cpp;

@ -113,7 +113,7 @@ def detect_kde(env):
else: else:
print RED + "moc was not found - set QTDIR or put it in your PATH ?" + NORMAL print RED + "moc was not found - set QTDIR or put it in your PATH ?" + NORMAL
env.Exit(1) env.Exit(1)
env['QT_TQMOC'] = moc env['QT_MOC'] = moc
## check for the qt and kde includes ## check for the qt and kde includes
print "Checking for the qt includes : ", print "Checking for the qt includes : ",
@ -326,7 +326,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
# h file with the Q_OBJECT macro found -> add .moc or _moc.cpp file # h file with the Q_OBJECT macro found -> add .moc or _moc.cpp file
moc_cpp = None moc_cpp = None
if env.has_key('NOTQMOCSCAN'): if env.has_key('NOMOCSCAN'):
moc_cpp = env.Moc(h) moc_cpp = env.Moc(h)
else: else:
reg = '\n\s*#include\s*("|<)'+splitext(cpp.name)[0]+'.moc("|>)' reg = '\n\s*#include\s*("|<)'+splitext(cpp.name)[0]+'.moc("|>)'
@ -369,7 +369,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
('QTLIBPATH', 'path to the qt libraries'), ('QTLIBPATH', 'path to the qt libraries'),
('QTINCLUDEPATH', 'path to the qt includes'), ('QTINCLUDEPATH', 'path to the qt includes'),
('QT_UIC', 'moc directory'), ('QT_UIC', 'moc directory'),
('QT_TQMOC', 'moc executable command'), ('QT_MOC', 'moc executable command'),
('QTPLUGINS', 'uic executable command'), ('QTPLUGINS', 'uic executable command'),
('KDEDIR', 'root of kde directory'), ('KDEDIR', 'root of kde directory'),
('KDELIBPATH', 'path to the kde libs'), ('KDELIBPATH', 'path to the kde libs'),
@ -412,8 +412,8 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
env['QT_UICIMPLPREFIX'] = '' env['QT_UICIMPLPREFIX'] = ''
env['QT_UICIMPLSUFFIX'] = '.cpp' env['QT_UICIMPLSUFFIX'] = '.cpp'
env['QT_TQMOCHPREFIX'] = '' env['QT_MOCHPREFIX'] = ''
env['QT_TQMOCHSUFFIX'] = '.moc' env['QT_MOCHSUFFIX'] = '.moc'
env['KDE_KCFG_IMPLPREFIX'] = '' env['KDE_KCFG_IMPLPREFIX'] = ''
env['KDE_KCFG_IMPL_HSUFFIX'] = '.h' env['KDE_KCFG_IMPL_HSUFFIX'] = '.h'
env['KDE_KCFG_IMPL_CSUFFIX'] = '.cpp' env['KDE_KCFG_IMPL_CSUFFIX'] = '.cpp'
@ -427,7 +427,7 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
inc_moc = '#include "%s"\n' % target[2].name inc_moc = '#include "%s"\n' % target[2].name
comp_h = '$QT_UIC $QT_UIC_HFLAGS -o %s %s' % (target[0].path, source[0].path) comp_h = '$QT_UIC $QT_UIC_HFLAGS -o %s %s' % (target[0].path, source[0].path)
comp_c = '$QT_UIC $QT_UIC_CFLAGS -impl %s %s' % (target[0].path, source[0].path) comp_c = '$QT_UIC $QT_UIC_CFLAGS -impl %s %s' % (target[0].path, source[0].path)
comp_moc = '$QT_TQMOC -o %s %s' % (target[2].path, target[0].path) comp_moc = '$QT_MOC -o %s %s' % (target[2].path, target[0].path)
ret = env.Execute(comp_h) ret = env.Execute(comp_h)
if ret: if ret:
@ -461,8 +461,8 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
if len(target) < 3: if len(target) < 3:
# third target is .moc file # third target is .moc file
target.append(adjustixes(bs, target.append(adjustixes(bs,
env.subst('$QT_TQMOCHPREFIX'), env.subst('$QT_MOCHPREFIX'),
env.subst('$QT_TQMOCHSUFFIX'))) env.subst('$QT_MOCHSUFFIX')))
return target, source return target, source
UIC_BUILDER = Builder( UIC_BUILDER = Builder(
@ -472,15 +472,15 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
src_suffix = '.ui') src_suffix = '.ui')
## moc file processing ## moc file processing
env['QT_TQMOCCOM'] = ('$QT_TQMOC -o ${TARGETS[0]} $SOURCE') env['QT_MOCCOM'] = ('$QT_MOC -o ${TARGETS[0]} $SOURCE')
TQMOC_BUILDER = Builder( MOC_BUILDER = Builder(
action = '$QT_TQMOCCOM', action = '$QT_MOCCOM',
suffix = '.moc', suffix = '.moc',
src_suffix = '.h') src_suffix = '.h')
TQMOCCPP_BUILDER = Builder( MOCCPP_BUILDER = Builder(
action = '$QT_TQMOCCOM', action = '$QT_MOCCOM',
suffix = '_moc.cpp', suffix = '_moc.cpp',
src_suffix = '.h') src_suffix = '.h')
@ -576,8 +576,8 @@ ie: """+BOLD+"""scons configure libdir=/usr/local/lib qtincludes=/usr/include/qt
## register the builders ## register the builders
env['BUILDERS']['Uic'] = UIC_BUILDER env['BUILDERS']['Uic'] = UIC_BUILDER
env['BUILDERS']['Moc'] = TQMOC_BUILDER env['BUILDERS']['Moc'] = MOC_BUILDER
env['BUILDERS']['Moccpp'] = TQMOCCPP_BUILDER env['BUILDERS']['Moccpp'] = MOCCPP_BUILDER
env['BUILDERS']['Dcop'] = DCOP_BUILDER env['BUILDERS']['Dcop'] = DCOP_BUILDER
env['BUILDERS']['Kcfg'] = KCFG_BUILDER env['BUILDERS']['Kcfg'] = KCFG_BUILDER
env['BUILDERS']['LaFile'] = LA_BUILDER env['BUILDERS']['LaFile'] = LA_BUILDER

Loading…
Cancel
Save