void LinkDialogProcessorGraphicsItem::updatePropertyItemPositions(bool animateExpansion) {
    int globalIndex = 0;
    for (auto& elem : propertyGraphicsItems_) {
        if (elem->getLevel() == 0) elem->setPropertyItemIndex(globalIndex);
    }

    if (animateExpansion) {
        animationStart();
    } else {
        animateExpansion_ = 1.0f;
        updateAll();
    }
}
Example #2
0
void MainWidget::animStart() {
    _isAnimStarted = true;
    emit animationStart();
}