ClasticGrainSizeView::ClasticGrainSizeView(QWidget* p, ClasticGrainSizeItemModel* model)
: GrainSizeView(p),
_project(0) {
    setModel(model);
    setContextMenuPolicy(Qt::CustomContextMenu);
    connect(model, SIGNAL(reloaded()), this, SLOT(slotReloaded()));

    connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slotCustomContextMenuRequested(const QPoint&)));
    connect(static_cast<ProfileLogger*> (QApplication::instance()), SIGNAL(currentProjectChanged(Project*)), this, SLOT(slotCurrentProjectChanged(Project*)));
    connect(this, SIGNAL(activated(const QModelIndex&)), this, SLOT(slotIndexActivated(const QModelIndex&)));
    connect(this, SIGNAL(clicked(const QModelIndex&)), this, SLOT(slotIndexActivated(const QModelIndex&)));
    connect(this, SIGNAL(reloadRequest()), model, SLOT(reload()));

    connect(model, SIGNAL(selectItemRequest(const QModelIndex&)), this, SLOT(slotSelectItemRequested(const QModelIndex&)));
}
BedCorrelationItemView::BedCorrelationItemView(QWidget* p, BedCorrelationItemModel* model)
: TreeView(p),
_profileCorrelation(0) {
    // setSortingEnabled(true);
    setEnabled(false);

    setModel(model);
    connect(model, SIGNAL(reloaded()), this, SLOT(slotReloaded()));

    setContextMenuPolicy(Qt::CustomContextMenu);

    connect(this, SIGNAL(activated(const QModelIndex&)), this, SLOT(slotIndexActivated(const QModelIndex&)));
    connect(this, SIGNAL(clicked(const QModelIndex&)), this, SLOT(slotIndexActivated(const QModelIndex&)));

    connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slotCustomContextMenuRequested(const QPoint&)));
    connect(this, SIGNAL(reloadRequest()), model, SLOT(reload()));
    connect(this, SIGNAL(createBedCorrelationRequest()), model, SLOT(slotCreate()));
    connect(this, SIGNAL(editRequest(const QModelIndex&)), model, SLOT(slotEdit(const QModelIndex&)));
    connect(this, SIGNAL(deleteRequest(QModelIndexList)), model, SLOT(slotDelete(QModelIndexList)));
}
void ColorView::slotReload() {
    emit currentColorChanged(0);
    emit reloadRequest();
}
void FaciesView::slotReload() {
    emit currentFaciesChanged(0);
    emit reloadRequest();
}
void ClasticGrainSizeView::slotReload() {
    emit currentClasticGrainSizeChanged(0);
    emit reloadRequest();
}
Example #6
0
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
void QmvTable::redisplayRow( int row, int col )
{
        // the args (row and col) refer to the cell, not the QmvClass row
    emit reloadRequest( row, col );
}
void BedCorrelationItemView::slotReload() {
    emit currentBedCorrelationChanged(0);
    emit reloadRequest();
    sortByColumn(0, Qt::DescendingOrder);
}
void ImageItemView::slotReload() {
    emit currentImageChanged(0);
    emit reloadRequest();
    sortByColumn(0, Qt::DescendingOrder);
}
void CustomSymbolView::slotReload() {
    emit currentCustomSymbolChanged(0);
    emit reloadRequest();
}