| 507 | } |
| 508 | |
| 509 | void UBGraphicsTextItem::activateTextEditor(bool activate) |
| 510 | { |
| 511 | qDebug() << textInteractionFlags(); |
| 512 | |
| 513 | this->isActivatedTextEditor = activate; |
| 514 | |
| 515 | if(!activate){ |
| 516 | setTextInteractionFlags(Qt::TextSelectableByMouse); |
| 517 | }else{ |
| 518 | setTextInteractionFlags(Qt::TextEditorInteraction); |
| 519 | } |
| 520 | |
| 521 | qDebug() << textInteractionFlags(); |
| 522 | } |
no outgoing calls
no test coverage detected