aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-24 16:13:33 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-24 14:18:06 +0000
commite79b1a228be449c0c5d39c6e12f32d54d72369de (patch)
treed551b7dc45201854d009dbd483d244ac0e6c15a3
parent696f0677ea3c982344364f633845ed39b686cdb3 (diff)
hellogl.py: Fix signal creation
Fix warnings: *** Sort Warning *** Signals and slots in QMetaObject 'GLWidget' are not ordered correctly, this may lead to issues. 1 Slot setXRotation(int) 2! Signal xRotationChanged(int) 3! Slot setYRotation(int) 4! Slot setZRotation(int) Task-number: PYSIDE-463 Change-Id: I51d7d446787aaa3ebe9e8f2dcd5350c8fa87b7bb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rwxr-xr-xexamples/opengl/hellogl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/opengl/hellogl.py b/examples/opengl/hellogl.py
index e3fa40b..18857fa 100755
--- a/examples/opengl/hellogl.py
+++ b/examples/opengl/hellogl.py
@@ -101,13 +101,13 @@ class Window(QtWidgets.QWidget):
class GLWidget(QtOpenGL.QGLWidget):
+ xRotationChanged = QtCore.Signal(int)
+ yRotationChanged = QtCore.Signal(int)
+ zRotationChanged = QtCore.Signal(int)
+
def __init__(self, parent=None):
QtOpenGL.QGLWidget.__init__(self, parent)
- xRotationChanged = QtCore.Signal(int)
- yRotationChanged = QtCore.Signal(int)
- zRotationChanged = QtCore.Signal(int)
-
self.object = 0
self.xRot = 0
self.yRot = 0