Add module state information to state tooltip

This commit is contained in:
blitzmann
2015-01-12 23:37:40 -05:00
parent 0a6274474e
commit 9b8b7aba07
2 changed files with 12 additions and 3 deletions

View File

@@ -44,6 +44,10 @@ class State(ViewColumn):
def getText(self, mod):
return ""
def getToolTip(self, mod):
if isinstance(mod, Module) and not mod.isEmpty:
return State_.getName(mod.state).title()
def getImageId(self, stuff):
if isinstance(stuff, Drone):
return self.checkedId if stuff.amountActive > 0 else self.uncheckedId