Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > f9b5dcfeb836768bfb331dda569b6c02 > files > 350

waf-doc-1.7.13-1.fc18.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>qt4 &mdash; Waf 1.7.11 documentation</title>
    
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.7.11',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="author" title="About these documents" href="../about.html" />
    <link rel="copyright" title="Copyright" href="../copyright.html" />
    <link rel="top" title="Waf 1.7.11 documentation" href="../index.html" />
    <link rel="up" title="Waf Tools" href="../tools.html" />
    <link rel="next" title="kde4" href="kde4.html" />
    <link rel="prev" title="glib2" href="glib2.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="kde4.html" title="kde4"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="glib2.html" title="glib2"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">Waf 1.7.11 documentation</a> &raquo;</li>
          <li><a href="../tools.html" accesskey="U">Waf Tools</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-waflib.Tools.qt4">
<span id="qt4"></span><h1>qt4<a class="headerlink" href="#module-waflib.Tools.qt4" title="Permalink to this headline">¶</a></h1>
<div class="section" id="tool-description">
<h2>Tool Description<a class="headerlink" href="#tool-description" title="Permalink to this headline">¶</a></h2>
<p>This tool helps with finding Qt4 tools and libraries,
and also provides syntactic sugar for using Qt4 tools.</p>
<p>The following snippet illustrates the tool usage:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">options</span><span class="p">(</span><span class="n">opt</span><span class="p">):</span>
        <span class="n">opt</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="s">&#39;compiler_cxx qt4&#39;</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">configure</span><span class="p">(</span><span class="n">conf</span><span class="p">):</span>
        <span class="n">conf</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="s">&#39;compiler_cxx qt4&#39;</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="n">bld</span><span class="p">):</span>
        <span class="n">bld</span><span class="p">(</span>
                <span class="n">features</span> <span class="o">=</span> <span class="s">&#39;qt4 cxx cxxprogram&#39;</span><span class="p">,</span>
                <span class="n">uselib</span>   <span class="o">=</span> <span class="s">&#39;QTCORE QTGUI QTOPENGL QTSVG&#39;</span><span class="p">,</span>
                <span class="n">source</span>   <span class="o">=</span> <span class="s">&#39;main.cpp textures.qrc aboutDialog.ui&#39;</span><span class="p">,</span>
                <span class="n">target</span>   <span class="o">=</span> <span class="s">&#39;window&#39;</span><span class="p">,</span>
        <span class="p">)</span>
</pre></div>
</div>
<p>Here, the UI description and resource files will be processed
to generate code.</p>
</div>
<div class="section" id="usage">
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
<p>Load the &#8220;qt4&#8221; tool.</p>
<p>You also need to edit your sources accordingly:</p>
<ul>
<li><p class="first">the normal way of doing things is to have your C++ files
include the .moc file.
This is regarded as the best practice (and provides much faster
compilations).
It also implies that the include paths have beenset properly.</p>
</li>
<li><p class="first">to have the include paths added automatically, use the following:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">waflib.TaskGen</span> <span class="kn">import</span> <span class="n">feature</span><span class="p">,</span> <span class="n">before_method</span><span class="p">,</span> <span class="n">after_method</span>
<span class="nd">@feature</span><span class="p">(</span><span class="s">&#39;cxx&#39;</span><span class="p">)</span>
<span class="nd">@after_method</span><span class="p">(</span><span class="s">&#39;process_source&#39;</span><span class="p">)</span>
<span class="nd">@before_method</span><span class="p">(</span><span class="s">&#39;apply_incpaths&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">add_includes_paths</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
   <span class="n">incs</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">to_list</span><span class="p">(</span><span class="nb">getattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s">&#39;includes&#39;</span><span class="p">,</span> <span class="s">&#39;&#39;</span><span class="p">)))</span>
   <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">compiled_tasks</span><span class="p">:</span>
       <span class="n">incs</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">x</span><span class="o">.</span><span class="n">inputs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">path_from</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">path</span><span class="p">))</span>
   <span class="bp">self</span><span class="o">.</span><span class="n">includes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">incs</span><span class="p">)</span>
</pre></div>
</div>
</li>
</ul>
<p>Note: another tool provides Qt processing that does not require
.moc includes, see &#8216;playground/slow_qt/&#8217;.</p>
<p>A few options (&#8211;qt{dir,bin,...}) and environment variables
(QT4_{ROOT,DIR,MOC,UIC,XCOMPILE}) allow finer tuning of the tool,
tool path selection, etc; please read the source for more info.</p>
<dl class="class">
<dt id="waflib.Tools.qt4.ContentHandler">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">ContentHandler</tt><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler" title="Permalink to this definition">¶</a></dt>
<dd><p>Interface for receiving logical document content events.</p>
<p>This is the main callback interface in SAX, and the one most
important to applications. The order of events in this interface
mirrors the order of the information in the document.</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.ContentHandler.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = 'Interface for receiving logical document content events.\n\n    This is the main callback interface in SAX, and the one most\n    important to applications. The order of events in this interface\n    mirrors the order of the information in the document.'</em><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ContentHandler.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'xml.sax.handler'</em><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.characters">
<tt class="descname">characters</tt><big>(</big><em>content</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.characters" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of character data.</p>
<p>The Parser will call this method to report each chunk of
character data. SAX parsers may return all contiguous
character data in a single chunk, or they may split it into
several chunks; however, all of the characters in any single
event must come from the same external entity so that the
Locator provides useful information.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.endDocument">
<tt class="descname">endDocument</tt><big>(</big><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.endDocument" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of the end of a document.</p>
<p>The SAX parser will invoke this method only once, and it will
be the last method invoked during the parse. The parser shall
not invoke this method until it has either abandoned parsing
(because of an unrecoverable error) or reached the end of
input.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.endElement">
<tt class="descname">endElement</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.endElement" title="Permalink to this definition">¶</a></dt>
<dd><p>Signals the end of an element in non-namespace mode.</p>
<p>The name parameter contains the name of the element type, just
as with the startElement event.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.endElementNS">
<tt class="descname">endElementNS</tt><big>(</big><em>name</em>, <em>qname</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.endElementNS" title="Permalink to this definition">¶</a></dt>
<dd><p>Signals the end of an element in namespace mode.</p>
<p>The name parameter contains the name of the element type, just
as with the startElementNS event.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.endPrefixMapping">
<tt class="descname">endPrefixMapping</tt><big>(</big><em>prefix</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.endPrefixMapping" title="Permalink to this definition">¶</a></dt>
<dd><p>End the scope of a prefix-URI mapping.</p>
<p>See startPrefixMapping for details. This event will always
occur after the corresponding endElement event, but the order
of endPrefixMapping events is not otherwise guaranteed.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.ignorableWhitespace">
<tt class="descname">ignorableWhitespace</tt><big>(</big><em>whitespace</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.ignorableWhitespace" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of ignorable whitespace in element content.</p>
<p>Validating Parsers must use this method to report each chunk
of ignorable whitespace (see the W3C XML 1.0 recommendation,
section 2.10): non-validating parsers may also use this method
if they are capable of parsing and using content models.</p>
<p>SAX parsers may return all contiguous whitespace in a single
chunk, or they may split it into several chunks; however, all
of the characters in any single event must come from the same
external entity, so that the Locator provides useful
information.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.processingInstruction">
<tt class="descname">processingInstruction</tt><big>(</big><em>target</em>, <em>data</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.processingInstruction" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of a processing instruction.</p>
<p>The Parser will invoke this method once for each processing
instruction found: note that processing instructions may occur
before or after the main document element.</p>
<p>A SAX parser should never report an XML declaration (XML 1.0,
section 2.8) or a text declaration (XML 1.0, section 4.3.1)
using this method.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.setDocumentLocator">
<tt class="descname">setDocumentLocator</tt><big>(</big><em>locator</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.setDocumentLocator" title="Permalink to this definition">¶</a></dt>
<dd><p>Called by the parser to give the application a locator for
locating the origin of document events.</p>
<p>SAX parsers are strongly encouraged (though not absolutely
required) to supply a locator: if it does so, it must supply
the locator to the application by invoking this method before
invoking any of the other methods in the DocumentHandler
interface.</p>
<p>The locator allows the application to determine the end
position of any document-related event, even if the parser is
not reporting an error. Typically, the application will use
this information for reporting its own errors (such as
character content that does not match an application&#8217;s
business rules). The information returned by the locator is
probably not sufficient for use with a search engine.</p>
<p>Note that the locator will return correct information only
during the invocation of the events in this interface. The
application should not attempt to use it at any other time.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.skippedEntity">
<tt class="descname">skippedEntity</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.skippedEntity" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of a skipped entity.</p>
<p>The Parser will invoke this method once for each entity
skipped. Non-validating processors may skip entities if they
have not seen the declarations (because, for example, the
entity was declared in an external DTD subset). All processors
may skip external entities, depending on the values of the
<a class="reference external" href="http://xml.org/sax/features/external-general-entities">http://xml.org/sax/features/external-general-entities</a> and the
<a class="reference external" href="http://xml.org/sax/features/external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</a>
properties.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.startDocument">
<tt class="descname">startDocument</tt><big>(</big><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.startDocument" title="Permalink to this definition">¶</a></dt>
<dd><p>Receive notification of the beginning of a document.</p>
<p>The SAX parser will invoke this method only once, before any
other methods in this interface or in DTDHandler (except for
setDocumentLocator).</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.startElement">
<tt class="descname">startElement</tt><big>(</big><em>name</em>, <em>attrs</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.startElement" title="Permalink to this definition">¶</a></dt>
<dd><p>Signals the start of an element in non-namespace mode.</p>
<p>The name parameter contains the raw XML 1.0 name of the
element type as a string and the attrs parameter holds an
instance of the Attributes class containing the attributes of
the element.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.startElementNS">
<tt class="descname">startElementNS</tt><big>(</big><em>name</em>, <em>qname</em>, <em>attrs</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.startElementNS" title="Permalink to this definition">¶</a></dt>
<dd><p>Signals the start of an element in namespace mode.</p>
<p>The name parameter contains the name of the element type as a
(uri, localname) tuple, the qname parameter the raw XML 1.0
name used in the source document, and the attrs parameter
holds an instance of the Attributes class containing the
attributes of the element.</p>
<p>The uri part of the name tuple is None for elements which have
no namespace.</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.ContentHandler.startPrefixMapping">
<tt class="descname">startPrefixMapping</tt><big>(</big><em>prefix</em>, <em>uri</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.ContentHandler.startPrefixMapping" title="Permalink to this definition">¶</a></dt>
<dd><p>Begin the scope of a prefix-URI Namespace mapping.</p>
<p>The information from this event is not necessary for normal
Namespace processing: the SAX XML reader will automatically
replace prefixes for element and attribute names when the
<a class="reference external" href="http://xml.org/sax/features/namespaces">http://xml.org/sax/features/namespaces</a> feature is true (the
default).</p>
<p>There are cases, however, when applications need to use
prefixes in character data or in attribute values, where they
cannot safely be expanded automatically; the
start/endPrefixMapping event supplies the information to the
application to expand prefixes in those contexts itself, if
necessary.</p>
<p>Note that start/endPrefixMapping events are not guaranteed to
be properly nested relative to each-other: all
startPrefixMapping events will occur before the corresponding
startElement event, and all endPrefixMapping events will occur
after the corresponding endElement event, but their order is
not guaranteed.</p>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="waflib.Tools.qt4.MOC_H">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">MOC_H</tt><em class="property"> = ['.h', '.hpp', '.hxx', '.hh']</em><a class="headerlink" href="#waflib.Tools.qt4.MOC_H" title="Permalink to this definition">¶</a></dt>
<dd><p>File extensions associated to the .moc files</p>
</dd></dl>

<dl class="data">
<dt id="waflib.Tools.qt4.EXT_RCC">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">EXT_RCC</tt><em class="property"> = ['.qrc']</em><a class="headerlink" href="#waflib.Tools.qt4.EXT_RCC" title="Permalink to this definition">¶</a></dt>
<dd><p>File extension for the resource (.qrc) files</p>
</dd></dl>

<dl class="data">
<dt id="waflib.Tools.qt4.EXT_UI">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">EXT_UI</tt><em class="property"> = ['.ui']</em><a class="headerlink" href="#waflib.Tools.qt4.EXT_UI" title="Permalink to this definition">¶</a></dt>
<dd><p>File extension for the user interface (.ui) files</p>
</dd></dl>

<dl class="data">
<dt id="waflib.Tools.qt4.EXT_QT4">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">EXT_QT4</tt><em class="property"> = ['.cpp', '.cc', '.cxx', '.C']</em><a class="headerlink" href="#waflib.Tools.qt4.EXT_QT4" title="Permalink to this definition">¶</a></dt>
<dd><p>File extensions of C++ files that may require a .moc processing</p>
</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.qxx">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">qxx</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qxx"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qxx" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">waflib.Tools.msvc.cxx</span></tt></p>
<p>Each C++ file can have zero or several .moc files to create.
They are known only when the files are scanned (preprocessor)
To avoid scanning the c++ files each time (parsing C/C++), the results
are retrieved from the task cache (bld.node_deps/bld.raw_deps).
The moc tasks are also created <em>dynamically</em> during the build.</p>
<dl class="method">
<dt id="waflib.Tools.qt4.qxx.scan">
<tt class="descname">scan</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qxx.scan"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qxx.scan" title="Permalink to this definition">¶</a></dt>
<dd><p>Re-use the C/C++ scanner, but remove the moc files from the dependencies
since the .cpp file already depends on all the headers</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.qxx.runnable_status">
<tt class="descname">runnable_status</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qxx.runnable_status"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qxx.runnable_status" title="Permalink to this definition">¶</a></dt>
<dd><p>Compute the task signature to make sure the scanner was executed. Create the
moc tasks by using <a class="reference internal" href="#waflib.Tools.qt4.qxx.add_moc_tasks" title="waflib.Tools.qt4.qxx.add_moc_tasks"><tt class="xref py py-meth docutils literal"><span class="pre">waflib.Tools.qt4.qxx.add_moc_tasks()</span></tt></a> (if necessary),
then postpone the task execution (there is no need to recompute the task signature).</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.qxx.create_moc_task">
<tt class="descname">create_moc_task</tt><big>(</big><em>h_node</em>, <em>m_node</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qxx.create_moc_task"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qxx.create_moc_task" title="Permalink to this definition">¶</a></dt>
<dd><p>If several libraries use the same classes, it is possible that moc will run several times (Issue 1318)
It is not possible to change the file names, but we can assume that the moc transformation will be identical,
and the moc tasks can be shared in a global cache.</p>
<p>The defines passed to moc will then depend on task generator order. If this is not acceptable, then
use the tool slow_qt4 instead (and enjoy the slow builds... :-( )</p>
</dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.qxx.add_moc_tasks">
<tt class="descname">add_moc_tasks</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qxx.add_moc_tasks"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qxx.add_moc_tasks" title="Permalink to this definition">¶</a></dt>
<dd><p>Create the moc tasks by looking in <tt class="docutils literal"><span class="pre">bld.raw_deps[self.uid()]</span></tt></p>
</dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qxx.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tEach C++ file can have zero or several .moc files to create.\n\tThey are known only when the files are scanned (preprocessor)\n\tTo avoid scanning the c++ files each time (parsing C/C++), the results\n\tare retrieved from the task cache (bld.node_deps/bld.raw_deps).\n\tThe moc tasks are also created *dynamically* during the build.\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.qxx.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qxx.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.qxx.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qxx.hcode">
<tt class="descname">hcode</tt><em class="property"> = '\tdef run(self):\n\t\tbld = self.generator.bld\n\t\tif bld.cache_global and not bld.nocache:\n\t\t\tif self.can_retrieve_cache():\n\t\t\t\treturn 0\n\t\treturn m1(self)\n'</em><a class="headerlink" href="#waflib.Tools.qt4.qxx.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.trans_update">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">trans_update</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#trans_update"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.trans_update" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Update a .ts files from a list of C++ files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.trans_update.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.trans_update.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.trans_update.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = 'Update a .ts files from a list of C++ files'</em><a class="headerlink" href="#waflib.Tools.qt4.trans_update.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.trans_update.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.trans_update.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.trans_update.hcode">
<tt class="descname">hcode</tt><em class="property"> = '${QT_LUPDATE} ${SRC} -ts ${TGT}'</em><a class="headerlink" href="#waflib.Tools.qt4.trans_update.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.trans_update.vars">
<tt class="descname">vars</tt><em class="property"> = ['QT_LUPDATE']</em><a class="headerlink" href="#waflib.Tools.qt4.trans_update.vars" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.XMLHandler">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">XMLHandler</tt><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#XMLHandler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.XMLHandler" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">xml.sax.handler.ContentHandler</span></tt></p>
<p>Parser for <em>.qrc</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.XMLHandler.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tParser for *.qrc* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.XMLHandler.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.XMLHandler.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.XMLHandler.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.create_rcc_task">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">create_rcc_task</tt><big>(</big><em>self</em>, <em>node</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#create_rcc_task"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.create_rcc_task" title="Permalink to this definition">¶</a></dt>
<dd><p>Create rcc and cxx tasks for <em>.qrc</em> files</p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.create_uic_task">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">create_uic_task</tt><big>(</big><em>self</em>, <em>node</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#create_uic_task"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.create_uic_task" title="Permalink to this definition">¶</a></dt>
<dd><p>hook for uic tasks</p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.add_lang">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">add_lang</tt><big>(</big><em>self</em>, <em>node</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#add_lang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.add_lang" title="Permalink to this definition">¶</a></dt>
<dd><p>add all the .ts file into self.lang</p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.apply_qt4">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">apply_qt4</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#apply_qt4"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.apply_qt4" title="Permalink to this definition">¶</a></dt>
<dd><p>Task generator method</p>
<p>Add MOC_FLAGS which may be necessary for moc:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="n">bld</span><span class="p">):</span>
        <span class="n">bld</span><span class="o">.</span><span class="n">program</span><span class="p">(</span><span class="n">features</span><span class="o">=</span><span class="s">&#39;qt4&#39;</span><span class="p">,</span> <span class="n">source</span><span class="o">=</span><span class="s">&#39;main.cpp&#39;</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s">&#39;app&#39;</span><span class="p">,</span> <span class="n">use</span><span class="o">=</span><span class="s">&#39;QTCORE&#39;</span><span class="p">)</span>
</pre></div>
</div>
<p>The additional parameters are:</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>lang</strong> (list of <a class="reference internal" href="../Node.html#waflib.Node.Node" title="waflib.Node.Node"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Node.Node</span></tt></a> or string without the .ts extension) &#8211; list of translation files (*.ts) to process</li>
<li><strong>update</strong> (<em>bool</em>) &#8211; whether to process the C++ files to update the *.ts files (use <strong>waf &#8211;translate</strong>)</li>
<li><strong>langname</strong> (<a class="reference internal" href="../Node.html#waflib.Node.Node" title="waflib.Node.Node"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Node.Node</span></tt></a> or string without the .qrc extension) &#8211; if given, transform the *.ts files into a .qrc files to include in the binary file</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Feature :</th><td class="field-body"><p class="first last"><a class="reference external" href="../featuremap.html#feature-qt4">qt4</a></p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.cxx_hook">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">cxx_hook</tt><big>(</big><em>self</em>, <em>node</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#cxx_hook"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.cxx_hook" title="Permalink to this definition">¶</a></dt>
<dd><p>Re-map C++ file extensions to the <a class="reference internal" href="#waflib.Tools.qt4.qxx" title="waflib.Tools.qt4.qxx"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Tools.qt4.qxx</span></tt></a> task.</p>
</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.rcc">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">rcc</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#rcc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.rcc" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Process <em>.qrc</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.ext_out">
<tt class="descname">ext_out</tt><em class="property"> = ['.h']</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.ext_out" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="waflib.Tools.qt4.rcc.scan">
<tt class="descname">scan</tt><big>(</big><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#rcc.scan"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.rcc.scan" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the <em>.qrc</em> files</p>
</dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tProcess *.qrc* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.hcode">
<tt class="descname">hcode</tt><em class="property"> = '${QT_RCC} -name ${SRC[0].name} ${SRC[0].abspath()} ${RCC_ST} -o ${TGT}'</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.rcc.vars">
<tt class="descname">vars</tt><em class="property"> = ['QT_RCC', 'RCC_ST']</em><a class="headerlink" href="#waflib.Tools.qt4.rcc.vars" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.moc">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">moc</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#moc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.moc" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Create <em>.moc</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.moc.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.moc.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.moc.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tCreate *.moc* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.moc.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.moc.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.moc.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.moc.hcode">
<tt class="descname">hcode</tt><em class="property"> = '${QT_MOC} ${MOC_FLAGS} ${MOCCPPPATH_ST:INCPATHS} ${MOCDEFINES_ST:DEFINES} ${SRC} ${MOC_ST} ${TGT}'</em><a class="headerlink" href="#waflib.Tools.qt4.moc.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.moc.vars">
<tt class="descname">vars</tt><em class="property"> = ['DEFINES', 'INCPATHS', 'MOCCPPPATH_ST', 'MOCDEFINES_ST', 'MOC_FLAGS', 'MOC_ST', 'QT_MOC']</em><a class="headerlink" href="#waflib.Tools.qt4.moc.vars" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.ui4">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">ui4</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#ui4"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.ui4" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Process <em>.ui</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.ext_out">
<tt class="descname">ext_out</tt><em class="property"> = ['.h']</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.ext_out" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tProcess *.ui* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.hcode">
<tt class="descname">hcode</tt><em class="property"> = '${QT_UIC} ${SRC} -o ${TGT}'</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ui4.vars">
<tt class="descname">vars</tt><em class="property"> = ['QT_UIC']</em><a class="headerlink" href="#waflib.Tools.qt4.ui4.vars" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.ts2qm">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">ts2qm</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#ts2qm"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.ts2qm" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Create <em>.qm</em> files from <em>.ts</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.ts2qm.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.ts2qm.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ts2qm.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tCreate *.qm* files from *.ts* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.ts2qm.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ts2qm.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.ts2qm.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ts2qm.hcode">
<tt class="descname">hcode</tt><em class="property"> = '${QT_LRELEASE} ${QT_LRELEASE_FLAGS} ${SRC} -qm ${TGT}'</em><a class="headerlink" href="#waflib.Tools.qt4.ts2qm.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.ts2qm.vars">
<tt class="descname">vars</tt><em class="property"> = ['QT_LRELEASE', 'QT_LRELEASE_FLAGS']</em><a class="headerlink" href="#waflib.Tools.qt4.ts2qm.vars" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="class">
<dt id="waflib.Tools.qt4.qm2rcc">
<em class="property">class </em><tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">qm2rcc</tt><big>(</big><em>*k</em>, <em>**kw</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#qm2rcc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="../Task.html#waflib.Task.Task" title="waflib.Task.Task"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Task.Task</span></tt></a></p>
<p>Transform <em>.qm</em> files into <em>.rc</em> files</p>
<dl class="attribute">
<dt id="waflib.Tools.qt4.qm2rcc.color">
<tt class="descname">color</tt><em class="property"> = 'BLUE'</em><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc.color" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qm2rcc.after">
<tt class="descname">after</tt><em class="property"> = 'ts2qm'</em><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc.after" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qm2rcc.__doc__">
<tt class="descname">__doc__</tt><em class="property"> = '\n\tTransform *.qm* files into *.rc* files\n\t'</em><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc.__doc__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qm2rcc.__module__">
<tt class="descname">__module__</tt><em class="property"> = 'waflib.Tools.qt4'</em><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc.__module__" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="waflib.Tools.qt4.qm2rcc.hcode">
<tt class="descname">hcode</tt><em class="property"> = '\tdef run(self):\n\t\t&quot;&quot;&quot;Create a qrc file including the inputs&quot;&quot;&quot;\n\t\ttxt = \'\\n\'.join([\'&lt;file&gt;%s&lt;/file&gt;\' % k.path_from(self.outputs[0].parent) for k in self.inputs])\n\t\tcode = \'&lt;!DOCTYPE RCC&gt;&lt;RCC version=&quot;1.0&quot;&gt;\\n&lt;qresource&gt;\\n%s\\n&lt;/qresource&gt;\\n&lt;/RCC&gt;\' % txt\n\t\tself.outputs[0].write(code)\n'</em><a class="headerlink" href="#waflib.Tools.qt4.qm2rcc.hcode" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.configure">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">configure</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#configure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.configure" title="Permalink to this definition">¶</a></dt>
<dd><p>Besides the configuration options, the environment variable QT4_ROOT may be used
to give the location of the qt4 libraries (absolute path).</p>
<p>The detection will use the program <em>pkg-config</em> through <tt class="xref py py-func docutils literal"><span class="pre">waflib.Tools.config_c.check_cfg()</span></tt></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.find_qt4_binaries">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">find_qt4_binaries</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#find_qt4_binaries"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.find_qt4_binaries" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.find_qt4_libraries">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">find_qt4_libraries</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#find_qt4_libraries"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.find_qt4_libraries" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.simplify_qt4_libs">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">simplify_qt4_libs</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#simplify_qt4_libs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.simplify_qt4_libs" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.conf">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">conf</tt><big>(</big><em>f</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.conf" title="Permalink to this definition">¶</a></dt>
<dd><p>Decorator: attach new configuration functions to <a class="reference internal" href="../Build.html#waflib.Build.BuildContext" title="waflib.Build.BuildContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Build.BuildContext</span></tt></a> and
<a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a>. The methods bound will accept a parameter
named &#8216;mandatory&#8217; to disable the configuration errors:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">configure</span><span class="p">(</span><span class="n">conf</span><span class="p">):</span>
        <span class="n">conf</span><span class="o">.</span><span class="n">find_program</span><span class="p">(</span><span class="s">&#39;abc&#39;</span><span class="p">,</span> <span class="n">mandatory</span><span class="o">=</span><span class="bp">False</span><span class="p">)</span>
</pre></div>
</div>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>f</strong> (<em>function</em>) &#8211; method to bind</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.feature">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">feature</tt><big>(</big><em>*k</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.feature" title="Permalink to this definition">¶</a></dt>
<dd><p>Decorator: register a task generator method that will be executed when the
object attribute &#8216;feature&#8217; contains the corresponding key(s):</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">waflib.Task</span> <span class="kn">import</span> <span class="n">feature</span>
<span class="nd">@feature</span><span class="p">(</span><span class="s">&#39;myfeature&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">myfunction</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="k">print</span><span class="p">(</span><span class="s">&#39;that is my feature!&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="n">bld</span><span class="p">):</span>
        <span class="n">bld</span><span class="p">(</span><span class="n">features</span><span class="o">=</span><span class="s">&#39;myfeature&#39;</span><span class="p">)</span>
</pre></div>
</div>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>k</strong> (<em>list of string</em>) &#8211; feature names</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.after_method">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">after_method</tt><big>(</big><em>*k</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.after_method" title="Permalink to this definition">¶</a></dt>
<dd><p>Decorator: register a task generator method which will be executed
after the functions of given name(s):</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">waflib.TaskGen</span> <span class="kn">import</span> <span class="n">feature</span><span class="p">,</span> <span class="n">after</span>
<span class="nd">@feature</span><span class="p">(</span><span class="s">&#39;myfeature&#39;</span><span class="p">)</span>
<span class="nd">@after_method</span><span class="p">(</span><span class="s">&#39;fun2&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">fun1</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="k">print</span><span class="p">(</span><span class="s">&#39;feature 1!&#39;</span><span class="p">)</span>
<span class="nd">@feature</span><span class="p">(</span><span class="s">&#39;myfeature&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">fun2</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="k">print</span><span class="p">(</span><span class="s">&#39;feature 2!&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="n">bld</span><span class="p">):</span>
        <span class="n">bld</span><span class="p">(</span><span class="n">features</span><span class="o">=</span><span class="s">&#39;myfeature&#39;</span><span class="p">)</span>
</pre></div>
</div>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>k</strong> (<em>list of string</em>) &#8211; method names</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.make_parser">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">make_parser</tt><big>(</big><em>parser_list=</em><span class="optional">[</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.make_parser" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates and returns a SAX parser.</p>
<p>Creates the first parser it is able to instantiate of the ones
given in the list created by doing parser_list +
default_parser_list.  The lists must contain the names of Python
modules containing both a SAX parser and a create_parser function.</p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.extension">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">extension</tt><big>(</big><em>*k</em><big>)</big><a class="headerlink" href="#waflib.Tools.qt4.extension" title="Permalink to this definition">¶</a></dt>
<dd><p>Decorator: register a task generator method which will be invoked during
the processing of source files for the extension given:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">waflib</span> <span class="kn">import</span> <span class="n">Task</span>
<span class="k">class</span> <span class="nc">mytask</span><span class="p">(</span><span class="n">Task</span><span class="p">):</span>
        <span class="n">run_str</span> <span class="o">=</span> <span class="s">&#39;cp ${SRC} ${TGT}&#39;</span>
<span class="nd">@extension</span><span class="p">(</span><span class="s">&#39;.moo&#39;</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">create_maa_file</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">node</span><span class="p">):</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">create_task</span><span class="p">(</span><span class="s">&#39;mytask&#39;</span><span class="p">,</span> <span class="n">node</span><span class="p">,</span> <span class="n">node</span><span class="o">.</span><span class="n">change_ext</span><span class="p">(</span><span class="s">&#39;.maa&#39;</span><span class="p">))</span>
<span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="n">bld</span><span class="p">):</span>
        <span class="n">bld</span><span class="p">(</span><span class="n">source</span><span class="o">=</span><span class="s">&#39;foo.moo&#39;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.add_qt4_rpath">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">add_qt4_rpath</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#add_qt4_rpath"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.add_qt4_rpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.set_qt4_libs_to_check">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">set_qt4_libs_to_check</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#set_qt4_libs_to_check"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.set_qt4_libs_to_check" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.set_qt4_defines">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">set_qt4_defines</tt><big>(</big><em>self</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#set_qt4_defines"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.set_qt4_defines" title="Permalink to this definition">¶</a></dt>
<dd><p>Configuration Method bound to <a class="reference internal" href="../Configure.html#waflib.Configure.ConfigurationContext" title="waflib.Configure.ConfigurationContext"><tt class="xref py py-class docutils literal"><span class="pre">waflib.Configure.ConfigurationContext</span></tt></a></p>
</dd></dl>

<dl class="function">
<dt id="waflib.Tools.qt4.options">
<tt class="descclassname">waflib.Tools.qt4.</tt><tt class="descname">options</tt><big>(</big><em>opt</em><big>)</big><a class="reference internal" href="../_modules/waflib/Tools/qt4.html#options"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#waflib.Tools.qt4.options" title="Permalink to this definition">¶</a></dt>
<dd><p>Command-line options</p>
</dd></dl>

</div>
<p>Features defined in this module:</p>
<ul class="simple">
<li><a class="reference external" href="../featuremap.html#feature-qt4">qt4</a></li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">qt4</a><ul>
<li><a class="reference internal" href="#tool-description">Tool Description</a></li>
<li><a class="reference internal" href="#usage">Usage</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="glib2.html"
                        title="previous chapter">glib2</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="kde4.html"
                        title="next chapter">kde4</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/tools/qt4.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="kde4.html" title="kde4"
             >next</a> |</li>
        <li class="right" >
          <a href="glib2.html" title="glib2"
             >previous</a> |</li>
        <li><a href="../index.html">Waf 1.7.11 documentation</a> &raquo;</li>
          <li><a href="../tools.html" >Waf Tools</a> &raquo;</li> 
      </ul>
    </div>

    <div class="footer">
        &copy; <a href="../copyright.html">Copyright</a> 2010, Thomas Nagy.
    </div>

  </body>
</html>