void IndexedFileAttachmentView::polish() { connect( attachment<IndexedFileAttachment>(), &IndexedFileAttachment::hashChanged, [this]() { updateStackedWidget(); open(); }); updateStackedWidget(); }
void WidgetContainerOverview::labelClicked() { QObject *sender = QObject::sender(); ClickableLabel *label = qobject_cast<ClickableLabel *>(sender); if (label) { int stackedWidgetIndex = label->property(idProperty).toInt(); // overview widget is not count if (stackedWidget->count() - 1 < stackedWidgetIndex) return; overviewUpdateTimer->stop(); updateStackedWidget(stackedWidgetIndex); } }