Ejemplo n.º 1
0
void PacmanView::read_files_finished(PacmanProcessReader * ptr) {
    delete ptr;

    setModel(model);
    delegate->setModel(model);
    if (prev_model != NULL) delete prev_model;
    if (prev_sel_model != NULL) delete prev_sel_model;

    header()->setStretchLastSection(false);
    setHeaderSections();
#if QT_VERSION >= 0x050000
    header()->setSectionsMovable(false);
#else
    header()->setMovable(false);
#endif    

    if (waitView != NULL) {
        waitView->setVisible(false);
        setVisible(true);
    }


    emit canFillRepos(model->getRepos());
    emit canFillFilters(model->getGroups());
    emit refreshCompleted();

    if (_selEntry.isValid()) selectPackageByEntry(_selEntry);

    emit enableActions(true);
}
Ejemplo n.º 2
0
void LocalFileMonitor::fullRefreshFileList()
{
    emit refreshStarted();
    refreshTimer.stop();
    // Refresh the file list

    refreshTimer.start();
    emit refreshCompleted();
}
Ejemplo n.º 3
0
void ChewingEditor::setupRefresh()
{
    connect(
        ui_.get()->actionRefresh, SIGNAL(triggered()),
        model_, SLOT(refresh())
    );

    connect(
        model_, SIGNAL(refreshCompleted(size_t)),
        ui_.get()->notification, SLOT(notifyRefreshCompleted(size_t))
    );

    emit model_->refresh();
}