OGS
FemConditionView Class Referencefinal

Detailed Description

A TreeView to display information of FEM conditions.

Definition at line 15 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 11 of file FemConditionView.cpp.

11: 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 26 of file FemConditionView.cpp.

28{
29 Q_UNUSED(selected);
30 Q_UNUSED(deselected);
31}

◆ updateView

void FemConditionView::updateView ( )
slot

Definition at line 13 of file FemConditionView.cpp.

14{
15 setAlternatingRowColors(true);
16 setColumnWidth(0, 200);
17 std::size_t nColumns =
18 (this->model() != nullptr) ? this->model()->columnCount() : 0;
19 for (std::size_t i = 1; i < nColumns; i++)
20 {
21 resizeColumnToContents(i);
22 }
23 this->expandAll();
24}

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