Package wafadmin :: Package Tools :: Module qt4
[hide private]
[frames] | no frames]

Module qt4

source code

Qt4 support

If QT4_ROOT is given (absolute path), the configuration will look in it first

This module also demonstrates how to add tasks dynamically (when the build has started)

Classes [hide private]
  ContentHandler
The most base type
  MTask
A cpp task that may create a moc task dynamically
  XMLHandler
  qt4_taskgen
Functions [hide private]
 
translation_update(task) source code
 
scan(self)
add the dependency on the files referenced in the qrc
source code
 
create_rcc_task(self, node)
hook for rcc files
source code
 
create_uic_task(self, node)
hook for uic tasks
source code
 
apply_qt4(self) source code
 
find_sources_in_dirs(self, dirnames, excludes=[], exts=[])
the .ts files are added to self.lang
source code
 
process_qm2rcc(task) source code
 
b(name, line, color='GREEN', vars=[], ext_in=[], ext_out=[], before=[], after=[])
return a new Task subclass with the function run compiled from the line given
source code
 
detect_qt4(conf) source code
 
detect(conf) source code
 
set_options(opt) source code
Variables [hide private]
  has_xml = True
  MOC_H = ['.h', '.hpp', '.hxx', '.hh']
  EXT_RCC = ['.qrc']
  EXT_UI = ['.ui']
  EXT_QT4 = ['.cpp', '.cc', '.cxx', '.C']
  cls = b('rcc', '${QT_RCC} -name ${SRC[0].name} ${SRC[0].abspat...
Function Details [hide private]

create_rcc_task(self, node)

source code 

hook for rcc files

Decorators:
  • @extension(EXT_RCC)

create_uic_task(self, node)

source code 

hook for uic tasks

Decorators:
  • @extension(EXT_UI)

apply_qt4(self)

source code 
Decorators:
  • @taskgen
  • @feature('qt4')
  • @after('apply_link')

Variables Details [hide private]

cls

Value:
b('rcc', '${QT_RCC} -name ${SRC[0].name} ${SRC[0].abspath(env)} ${RCC_\
ST} -o ${TGT}', color= 'BLUE', before= 'cxx moc', after= "qm2rcc")