Skip to content

Commit

Permalink
Arch: different icon for cloned windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 7, 2016
1 parent 56ff892 commit 50d0eae
Show file tree
Hide file tree
Showing 3 changed files with 584 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Arch/ArchWindow.py
Expand Up @@ -811,6 +811,10 @@ def __init__(self,vobj):

def getIcon(self):
import Arch_rc
if hasattr(self,"Object"):
if hasattr(self.Object,"CloneOf"):
if self.Object.CloneOf:
return ":/icons/Arch_Window_Clone.svg"
return ":/icons/Arch_Window_Tree.svg"

def updateData(self,obj,prop):
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Arch/Resources/Arch.qrc
Expand Up @@ -23,6 +23,7 @@
<file>icons/Arch_Structure_Tree.svg</file>
<file>icons/Arch_Structure_Clone.svg</file>
<file>icons/Arch_Window_Tree.svg</file>
<file>icons/Arch_Window_Clone.svg</file>
<file>icons/Arch_Axis.svg</file>
<file>icons/Arch_Axis_Tree.svg</file>
<file>icons/Arch_Roof.svg</file>
Expand Down

0 comments on commit 50d0eae

Please sign in to comment.