[QGIS Commit] r11272 - docs/trunk/english_us/coding-compilation_guide

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Aug 5 08:12:22 EDT 2009


Author: dassau
Date: 2009-08-05 08:12:20 -0400 (Wed, 05 Aug 2009)
New Revision: 11272

Modified:
   docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex
Log:
added a note about deprecated activate() signal - thanks to Giovanni.


Modified: docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex
===================================================================
--- docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex	2009-08-05 08:15:05 UTC (rev 11271)
+++ docs/trunk/english_us/coding-compilation_guide/plugins_writing_in_python.tex	2009-08-05 12:12:20 UTC (rev 11272)
@@ -209,7 +209,16 @@
       vlayer = self.iface.addVectorLayer(fileName, "myLayer", "ogr")
 \end{verbatim}
 
+\minisec{Signal 'activated ()' in python plugins is deprecated}
 
+When writing your python plugin, remember that the \texttt{activated ()}
+signal of the 'QAction class', used to signal the plugin it has been
+activated, is deprecated. This signal has disappeared from Qt4 and if Qt4 is
+not compiled with the Qt3 backward compatibility, it is simply non existent,
+so no plugin can be called at all.
+
+Please replace \texttt{activated ()} with \texttt{triggered ()}.
+
 \subsection{Uploading the plugin to the repository}
 
 If you have written a plugin you consider to be useful and you want to share with



More information about the QGIS-commit mailing list