Skip to content
Snippets Groups Projects
Forked from ogs / ogs
13477 commits behind the upstream repository.
  • Dmitri Naumov's avatar
    eef66cea
    google-explicit-constructor · eef66cea
    Dmitri Naumov authored
    initializer-list constructor should not be declared explicit.
    Constructors that take a single std::initializer_list
    parameter should also omit explicit, in order to support
    copy-initialization.
    eef66cea
    History
    google-explicit-constructor
    Dmitri Naumov authored
    initializer-list constructor should not be declared explicit.
    Constructors that take a single std::initializer_list
    parameter should also omit explicit, in order to support
    copy-initialization.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ElementTreeView.h 1.01 KiB
/**
 * \file
 * \author Karsten Rink
 * \date   2013-04-09
 * \brief  Definition of the ElementTreeView class.
 *
 * \copyright
 * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */
#pragma once

#include <QTreeView>

class vtkUnstructuredGridAlgorithm;

/**
 *    A TreeView to display mesh element properties.
 */
class ElementTreeView : public QTreeView
{
    Q_OBJECT

public:
    /// Constructor
    explicit ElementTreeView(QWidget* parent = nullptr);

public slots:
    void updateView();

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

signals:
    void nodeSelected(vtkUnstructuredGridAlgorithm const*const, unsigned, bool);
    void removeSelectedMeshComponent();
};