OGS
FemConditionView Class Referencefinal

Detailed Description

A TreeView to display information of FEM conditions.

Definition at line 21 of file FemConditionView.h.

#include <FemConditionView.h>

Inheritance diagram for FemConditionView:
[legend]
Collaboration diagram for FemConditionView:
[legend]

Public Slots

void updateView ()
 

Public Member Functions

 FemConditionView (QWidget *parent=nullptr)
 Constructor.
 

Protected Slots

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 Is called when the selection of this view changes.
 

Constructor & Destructor Documentation

◆ FemConditionView()

FemConditionView::FemConditionView ( QWidget * parent = nullptr)
explicit

Constructor.

Definition at line 19 of file FemConditionView.cpp.

19: QTreeView(parent) {}

Member Function Documentation

◆ selectionChanged

void FemConditionView::selectionChanged ( const QItemSelection & selected,
const QItemSelection & deselected )
overrideprotectedslot

Is called when the selection of this view changes.

Definition at line 34 of file FemConditionView.cpp.

36{
37 Q_UNUSED(selected);
38 Q_UNUSED(deselected);
39}

◆ updateView

void FemConditionView::updateView ( )
slot

Definition at line 21 of file FemConditionView.cpp.

22{
23 setAlternatingRowColors(true);
24 setColumnWidth(0, 200);
25 std::size_t nColumns =
26 (this->model() != nullptr) ? this->model()->columnCount() : 0;
27 for (std::size_t i = 1; i < nColumns; i++)
28 {
29 resizeColumnToContents(i);
30 }
31 this->expandAll();
32}

The documentation for this class was generated from the following files: