Skip to content
Permalink
Browse files

[sextante] fixed missing + icons in modeler

  • Loading branch information
volaya committed Apr 24, 2013
1 parent c8c7851 commit 58befd7c385c87a95fc5283a6e0fe82e895377b8
Binary file not shown.
Binary file not shown.
@@ -70,13 +70,13 @@ def __init__(self, element, elementIndex, model):
if element.parameters:
pt = self.getLinkPointForParameter(-1)
x = self.getXPositionForFoldButton()
pt = QtCore.QPointF(x, pt.y())
pt = QtCore.QPointF(x, pt.y() + 3)
self.inButton = FoldButtonGraphicItem(pt, self.foldInput)
self.inButton.setParentItem(self)
if element.outputs:
pt = self.getLinkPointForOutput(-1)
x = self.getXPositionForFoldButton()
pt = QtCore.QPointF(x, pt.y())
pt = QtCore.QPointF(x, pt.y() + 3)
self.outButton = FoldButtonGraphicItem(pt, self.foldOutput)
self.outButton.setParentItem(self)

@@ -325,8 +325,11 @@ def hoverLeaveEvent(self, event):

class FoldButtonGraphicItem(FlatButtonGraphicItem):

icons = { True : QtGui.QIcon(os.path.dirname(__file__) + "/../images/plus.gif"),
False : QtGui.QIcon(os.path.dirname(__file__) + "/../images/minus.gif")}
WIDTH = 11
HEIGHT = 11

icons = { True : QtGui.QIcon(os.path.dirname(__file__) + "/../images/plus.png"),
False : QtGui.QIcon(os.path.dirname(__file__) + "/../images/minus.png")}

def __init__(self, position, action):
self.folded = True

0 comments on commit 58befd7

Please sign in to comment.
You can’t perform that action at this time.