SF.net SVN: fclient:[959] trunk/fclient/fclient/impl/lib/qt4ex/lib/actions. py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-08-22 13:01:21
|
Revision: 959
http://fclient.svn.sourceforge.net/fclient/?rev=959&view=rev
Author: jUrner
Date: 2008-08-22 13:01:31 +0000 (Fri, 22 Aug 2008)
Log Message:
-----------
allow for text being None
Modified Paths:
--------------
trunk/fclient/fclient/impl/lib/qt4ex/lib/actions.py
Modified: trunk/fclient/fclient/impl/lib/qt4ex/lib/actions.py
===================================================================
--- trunk/fclient/fclient/impl/lib/qt4ex/lib/actions.py 2008-08-22 13:01:07 UTC (rev 958)
+++ trunk/fclient/fclient/impl/lib/qt4ex/lib/actions.py 2008-08-22 13:01:31 UTC (rev 959)
@@ -8,7 +8,10 @@
class Action(QtGui.QAction):
def __init__(self, text, parent, userData=None):
- QtGui.QAction.__init__(self, text, parent)
+ if text is None:
+ QtGui.QAction.__init__(self, parent)
+ else:
+ QtGui.QAction.__init__(self, text, parent)
self._userData = userData
def userData(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|