Skip to content

Commit

Permalink
[sextante] fixed missing + icons in modeler
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Apr 24, 2013
1 parent c8c7851 commit 58befd7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file added python/plugins/sextante/images/minus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added python/plugins/sextante/images/plus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions python/plugins/sextante/modeler/ModelerGraphicItem.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58befd7

Please sign in to comment.