DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
SchemaCustomFileModel.hpp
Go to the documentation of this file.
1
// DUNE DAQ modification notice:
2
// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3
// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4
// Renamed since fork: yes (from dbe/SchemaCustomFileModel.h to include/dbe/SchemaCustomFileModel.hpp).
5
6
#ifndef CUSTOMFILEMODEL_H
7
#define CUSTOMFILEMODEL_H
8
10
#include <QAbstractTableModel>
11
#include <QStringList>
12
13
namespace
dbse
14
{
15
16
class
CustomFileModel
:
public
QAbstractTableModel
17
{
18
Q_OBJECT
19
public
:
20
explicit
CustomFileModel
( QStringList & Headers, QObject * parent =
nullptr
);
21
~CustomFileModel
();
22
int
rowCount
(
const
QModelIndex & parent )
const
;
23
int
columnCount
(
const
QModelIndex & parent )
const
;
24
// Qt::ItemFlags flags ( const QModelIndex & index ) const;
25
QVariant
headerData
(
int
section, Qt::Orientation orientation,
int
role )
const
;
26
QVariant
data
(
const
QModelIndex & index,
int
role )
const
;
27
void
setupModel
();
28
QStringList
getRowFromIndex
( QModelIndex & index );
29
private
:
30
QStringList
HeaderList
;
31
QList<QStringList>
Data
;
32
};
33
34
}
// namespace dbse
35
#endif
// CUSTOMFILEMODEL_H
dbse::CustomFileModel::Data
QList< QStringList > Data
Definition
SchemaCustomFileModel.hpp:31
dbse::CustomFileModel::getRowFromIndex
QStringList getRowFromIndex(QModelIndex &index)
Definition
SchemaCustomFileModel.cpp:127
dbse::CustomFileModel::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition
SchemaCustomFileModel.cpp:45
dbse::CustomFileModel::HeaderList
QStringList HeaderList
Definition
SchemaCustomFileModel.hpp:30
dbse::CustomFileModel::data
QVariant data(const QModelIndex &index, int role) const
Definition
SchemaCustomFileModel.cpp:61
dbse::CustomFileModel::~CustomFileModel
~CustomFileModel()
Definition
SchemaCustomFileModel.cpp:19
dbse::CustomFileModel::setupModel
void setupModel()
Definition
SchemaCustomFileModel.cpp:91
dbse::CustomFileModel::columnCount
int columnCount(const QModelIndex &parent) const
Definition
SchemaCustomFileModel.cpp:29
dbse::CustomFileModel::rowCount
int rowCount(const QModelIndex &parent) const
Definition
SchemaCustomFileModel.cpp:23
dbse::CustomFileModel::CustomFileModel
CustomFileModel(QStringList &Headers, QObject *parent=nullptr)
Including Schema Editor.
Definition
SchemaCustomFileModel.cpp:12
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:14
Generated on
for DUNE-DAQ by
1.17.0