Ejemplo n.º 1
0
void GlobStore::updateDisplay()
{
    indicator->updateDraw();
    midiControl->update();
    if (schedRestore) {
        schedRestore = false;
        emit requestRestore(schedRestoreVal);
    }

    if (!needsGUIUpdate) return;
    needsGUIUpdate = false;
    setDispState(dispReqIx, dispReqSelected);
}
Ejemplo n.º 2
0
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());
    }
Ejemplo n.º 3
0
void GlobStore::mapRestoreSignal()
{
    int ix = sender()->property("index").toInt();

    emit requestRestore(ix - 1);
}