Fixing an orientation bug
authorEd Page <eopage@byu.net>
Tue, 11 Jan 2011 04:39:32 +0000 (22:39 -0600)
committerEd Page <eopage@byu.net>
Tue, 11 Jan 2011 04:39:32 +0000 (22:39 -0600)
src/dialcentral_qt.py
src/util/qtpie.py

index 174f042..da2a7a9 100755 (executable)
@@ -667,10 +667,10 @@ class MainWindow(object):
        def set_orientation(self, isPortrait):
                if isPortrait:
                        self._tabWidget.setTabPosition(QtGui.QTabWidget.South)
-                       qui_utils.set_window_orientation(QtCore.Qt.Vertical)
+                       qui_utils.set_window_orientation(self.window, QtCore.Qt.Vertical)
                else:
                        self._tabWidget.setTabPosition(QtGui.QTabWidget.West)
-                       qui_utils.set_window_orientation(QtCore.Qt.Horizontal)
+                       qui_utils.set_window_orientation(self.window, QtCore.Qt.Horizontal)
                for child in self.walk_children():
                        child.set_orientation(isPortrait)
 
index a3de6aa..f840ed2 100755 (executable)
@@ -597,7 +597,6 @@ class QPieButton(QtGui.QWidget):
                self._popupLocation = mouseEvent.globalPos()
                self._delayPopupTimer.start()
 
-       @QtCore.pyqtSlot()
        @misc_utils.log_exception(_moduleLogger)
        def _on_delayed_popup(self):
                assert self._popupLocation is not None, "Widget location abuse"