개정판 fea81a5c
issue #1048: 화면/메뉴/툴바 개발 - Streamline 그리기 모드에서만 Connector를 보여준다
Change-Id: I63cb50d2c0417b14757417442ab7b316d86fdbbc
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
617 | 617 |
if self.graphicsView.command is not None: |
618 | 618 |
self.graphicsView.useDefaultCommand() |
619 | 619 |
|
620 |
for _action in self.actionGroup.actions():
|
|
620 |
for _action in [x for x in self.actionGroup.actions() if x is not action]:
|
|
621 | 621 |
_action.setChecked(False) |
622 |
if _action is self.actionLine: |
|
623 |
for item in self.graphicsView.scene.items(): |
|
624 |
if not hasattr(item, 'connectors'): continue |
|
625 |
for connector in item.connectors: connector.hide() |
|
622 | 626 |
|
623 | 627 |
action.setChecked(True) |
628 |
if action is self.actionLine: |
|
629 |
for item in self.graphicsView.scene.items(): |
|
630 |
if not hasattr(item, 'connectors'): continue |
|
631 |
for connector in item.connectors: connector.setVisible(True) |
|
624 | 632 |
|
625 | 633 |
def onOptions(self): |
626 | 634 |
from OptionsDialog import QOptionsDialog |
HYTOS/HYTOS/Shapes/SymbolSvgItem.py | ||
---|---|---|
526 | 526 |
|
527 | 527 |
def itemChange(self, change, value): |
528 | 528 |
""" call signals when item's position is changed """ |
529 |
if change == QGraphicsItem.ItemPositionChange:
|
|
529 |
if change == QGraphicsItem.ItemPositionHasChanged:
|
|
530 | 530 |
self.transfer.on_pos_changed.emit(self) |
531 | 531 |
return value |
532 | 532 |
|
HYTOS/HYTOS/americano.qss | ||
---|---|---|
467 | 467 |
QCheckBox::indicator:disabled, QRadioButton::indicator:disabled |
468 | 468 |
{ |
469 | 469 |
border: 1px solid #444; |
470 |
} |
|
471 |
|
|
472 |
QGraphicsView |
|
473 |
{ |
|
474 |
border: transparent; |
|
475 |
background: transparent; |
|
470 | 476 |
} |
HYTOS/HYTOS/coffee.qss | ||
---|---|---|
147 | 147 |
|
148 | 148 |
QToolBar { |
149 | 149 |
background-color: palegoldenrod; |
150 |
} |
|
151 |
|
|
152 |
QGraphicsView |
|
153 |
{ |
|
154 |
border: transparent; |
|
155 |
background: transparent; |
|
150 | 156 |
} |
HYTOS/HYTOS/pagefold.qss | ||
---|---|---|
158 | 158 |
|
159 | 159 |
QProgressBar:chunk{ |
160 | 160 |
background-color: grey; |
161 |
} |
|
162 |
|
|
163 |
QGraphicsView |
|
164 |
{ |
|
165 |
border: transparent; |
|
166 |
background: transparent; |
|
161 | 167 |
} |
내보내기 Unified diff