Commits

Yuya Nishihara committed 0951a9f

customtools: avoid setDefaultDropAction() on PyQt 4.6 (CentOs 6.3)

See also 8d357e3ae4d8.

Comments (0)

Files changed (1)

tortoisehg/hgqt/customtools.py

         # Enable drag and drop to reorder the tools
         self.setDragEnabled(True)
         self.setDragDropMode(self.InternalMove)
-        self.setDefaultDropAction(Qt.MoveAction)
+        if PYQT_VERSION >= 0x40700:
+            self.setDefaultDropAction(Qt.MoveAction)
 
     def _guidef2toollist(self, guidef):
         toollist = []