freebsd-ports/misc/py-qt4-demo/files/patch-examples__designer__plugins__plugins.py
Martin Wilke c359376791 - Update py-qt4* to 4.6.2
- Update py-sip to 4.9.3

The KDE FreeBSD team would like to say thanks to all the helpers
and submitters.

Tested by:	pointyhat-exp-run (myself)
2009-11-27 00:10:51 +00:00

22 lines
530 B
Python

--- examples/designer/plugins/plugins.py.orig Thu Aug 9 23:42:04 2007
+++ examples/designer/plugins/plugins.py Thu Aug 9 23:47:13 2007
@@ -11,6 +11,10 @@
from PyQt4 import QtCore, QtGui
+# FreeBSD check
+freebsd = False
+if sys.platform[:-1] == 'freebsd': freebsd = True
+
app = QtGui.QApplication(sys.argv)
@@ -43,6 +47,8 @@
if sys.platform == 'darwin':
designer_bin += '/Designer.app/Contents/MacOS/Designer'
+elif freebsd:
+ designer_bin.append("/designer-qt4")
else:
designer_bin += '/designer'