Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,38 @@
/**
* @RDE_HEADER@
* $Id$
* $HeadURL$
* $Author$
*
* Created by Philipp Last, NLSE, 05.01.2018
*/
#pragma once
#include <Evaluations/logger.h>
#include <nglwidgets/ngltreemodel.h>
#include <nglwidgets/ngltreeitem.h>
#include "evl_edit_schema_element_data.h"
namespace Evaluations
{
class TreeModelGeneral : public NGLTreeModel
{
Q_OBJECT
public:
TreeModelGeneral(QObject *parent,
NGL::INGLLogger &logger);
void iterateModel(const QModelIndex &parent, const std::function<void(const QModelIndex &, const QVariant &)> &fCallback, bool recursive = true) const;
QVariant dataAsVariant(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QModelIndex insertRow(const QModelIndex &parent, const QVariant &data, const QIcon &icon);
bool updateRow(const QModelIndex &index, const QVariant &data, const QIcon &icon);
void removeRow(const QModelIndex &idx, bool deleteRootAllowed = false);
protected:
LOGGER_T m_logger;
};
}