void GlobStore::updateDisplay() { indicator->updateDraw(); midiControl->update(); if (schedRestore) { schedRestore = false; emit requestRestore(schedRestoreVal); } if (!needsGUIUpdate) return; needsGUIUpdate = false; setDispState(dispReqIx, dispReqSelected); }
void ArchiveListWidget::addArchives(QList<ArchivePtr > archives) { clear(); std::sort(archives.begin(), archives.end(), ArchiveCompare); foreach (ArchivePtr archive, archives) { ArchiveListItem *item = new ArchiveListItem(archive); connect(item, SIGNAL(requestDelete()), this, SLOT(removeItems())); connect(item, SIGNAL(requestInspect()), this, SLOT(inspectItem())); connect(item, SIGNAL(requestRestore()), this, SLOT(restoreItem())); connect(item, SIGNAL(requestGoToJob()), this, SLOT(goToJob())); this->insertItem(this->count(), item); this->setItemWidget(item, item->widget()); }
void GlobStore::mapRestoreSignal() { int ix = sender()->property("index").toInt(); emit requestRestore(ix - 1); }