DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
CustomDelegate.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/CustomDelegate.h to include/dbe/CustomDelegate.hpp).
5
6
#ifndef CUSTOMDELEGATE_H
7
#define CUSTOMDELEGATE_H
8
9
#include "
dbe/confaccessor.hpp
"
10
#include <QItemDelegate>
11
#include <QPainter>
12
#include <QModelIndex>
13
14
namespace
dbe
15
{
16
class
CustomDelegate
:
public
QItemDelegate
17
{
18
Q_OBJECT
19
public
:
20
explicit
CustomDelegate
( QObject * parent = 0 );
21
22
QWidget *
createEditor
( QWidget * parent,
const
QStyleOptionViewItem & option,
23
const
QModelIndex & index )
const
;
24
25
void
setEditorData
( QWidget * editor,
const
QModelIndex & index )
const
;
26
27
void
setModelData
( QWidget * editor, QAbstractItemModel * model,
28
const
QModelIndex & index )
const
;
29
30
void
updateEditorGeometry
( QWidget * editor,
const
QStyleOptionViewItem & option,
31
const
QModelIndex & index )
const
;
32
33
bool
eventFilter
( QObject * editor, QEvent * event );
34
35
bool
editorEvent
( QEvent * event, QAbstractItemModel * model,
36
const
QStyleOptionViewItem & option,
const
QModelIndex & index );
37
38
void
paint
( QPainter * painter,
const
QStyleOptionViewItem & option,
39
const
QModelIndex & index )
const
;
40
41
private
slots:
42
void
CommitAndClose
();
43
void
Close
();
44
45
signals:
46
void
CreateObjectEditorSignal
(
tref
Object )
const
;
47
};
48
}
// end namespace dbe
49
#endif
// CUSTOMDELEGATE_H
dbe::CustomDelegate::CustomDelegate
CustomDelegate(QObject *parent=0)
Definition
CustomDelegate.cpp:17
dbe::CustomDelegate::createEditor
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition
CustomDelegate.cpp:23
dbe::CustomDelegate::CommitAndClose
void CommitAndClose()
Definition
CustomDelegate.cpp:274
dbe::CustomDelegate::Close
void Close()
Definition
CustomDelegate.cpp:286
dbe::CustomDelegate::editorEvent
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition
CustomDelegate.cpp:253
dbe::CustomDelegate::updateEditorGeometry
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition
CustomDelegate.cpp:218
dbe::CustomDelegate::setEditorData
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition
CustomDelegate.cpp:142
dbe::CustomDelegate::CreateObjectEditorSignal
void CreateObjectEditorSignal(tref Object) const
dbe::CustomDelegate::paint
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition
CustomDelegate.cpp:178
dbe::CustomDelegate::eventFilter
bool eventFilter(QObject *editor, QEvent *event)
Definition
CustomDelegate.cpp:226
dbe::CustomDelegate::setModelData
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition
CustomDelegate.cpp:159
confaccessor.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:35
Generated on
for DUNE-DAQ by
1.17.0