Commits

Aleš Erjavec  committed 84df67a

No drop shadow offset for canvas lines.

  • Participants
  • Parent commits abfeb50

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/orngCanvasItems.py

     else:
         return None
     
-def setDropShadow(self):
+def setDropShadow(self, offset=QPointF(0.3, 0.5), blur_radius=5):
     if qVersion() >= "4.6" and self.canvasDlg.settings["enableCanvasDropShadows"]:
         effect = QGraphicsDropShadowEffect(self.scene())
-        effect.setOffset(QPointF(0.3, 0.5))
-        effect.setBlurRadius(5)
+        effect.setOffset(offset)
+        effect.setBlurRadius(blur_radius)
         self.setGraphicsEffect(effect)
     
 class TempCanvasLine(QGraphicsPathItem):
 
         self.setPen(QPen(QColor(180, 180, 180), 3, Qt.SolidLine))
         
-        self.setDropShadow()
+        self.setDropShadow(offset=QPointF(0.0, 0.0))
     
     setDropShadow = setDropShadow
     getDropShadow = getDropShadow
             
         QObject.connect(self.outWidget.instance, SIGNAL("dynamicLinkEnabledChanged(PyQt_PyObject, bool)"), self.updateDynamicEnableState)
         
-        self.setDropShadow()
+        self.setDropShadow(offset=QPointF(0.0, 0.0))
         
     setDropShadow = setDropShadow
     getDropShadow = getDropShadow