]> vaikene.ee Git - evaf/blobdiff - www/pswgen04.html
Changed tutorial files to follow the changes in the PswGen application.
[evaf] / www / pswgen04.html
index df82cb0b946a970ac9d1335fee64c395576e05c1..bf8804683831de7aea9766dec88bc3edf49e560e 100644 (file)
 
 <span class="hl kwd">VER_EXPORT_VERSION_INFO</span><span class="hl opt">()</span></pre>
 
+        <p>To make the <tt>Module</tt> class a proper Qt plugin, we use the <tt>Q_EXPORT_PLUGIN2</tt> macro. The name of the module is already
+        defined in the <tt>version.h</tt> header file as <tt>VER_MODULE_NAME_STR</tt>.
+
+        <pre class="hl"><span class="hl kwd">Q_EXPORT_PLUGIN2</span><span class="hl opt">(</span>VER_MODULE_NAME_STR<span class="hl opt">,</span> eVaf<span class="hl opt">::</span>PswGen<span class="hl opt">::</span>Generator<span class="hl opt">::</span>Module<span class="hl opt">)</span></pre>
+
         <p>We make our life easier with several <tt>using namespace</tt> keywords:</p>
 
 <pre class="hl"><span class="hl kwa">using namespace</span> eVaf<span class="hl opt">;</span>