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 <QModelIndex>
12
#include <QPainter>
13
14
namespace
dbe
{
15
class
CustomDelegate
:
public
QItemDelegate
16
{
17
Q_OBJECT
18
public
:
19
explicit
CustomDelegate
(QObject* parent = 0);
20
21
QWidget*
createEditor
(QWidget* parent,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const
;
22
23
void
setEditorData
(QWidget* editor,
const
QModelIndex& index)
const
;
24
25
void
setModelData
(QWidget* editor, QAbstractItemModel* model,
const
QModelIndex& index)
const
;
26
27
void
updateEditorGeometry
(QWidget* editor,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const
;
28
29
bool
eventFilter
(QObject* editor, QEvent* event);
30
31
bool
editorEvent
(QEvent* event,
32
QAbstractItemModel* model,
33
const
QStyleOptionViewItem& option,
34
const
QModelIndex& index);
35
36
void
paint
(QPainter* painter,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const
;
37
38
private
slots:
39
void
CommitAndClose
();
40
void
Close
();
41
42
signals:
43
void
CreateObjectEditorSignal
(
tref
Object)
const
;
44
};
45
}
// end namespace dbe
46
#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:24
dbe::CustomDelegate::CommitAndClose
void CommitAndClose()
Definition
CustomDelegate.cpp:243
dbe::CustomDelegate::Close
void Close()
Definition
CustomDelegate.cpp:255
dbe::CustomDelegate::editorEvent
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition
CustomDelegate.cpp:224
dbe::CustomDelegate::updateEditorGeometry
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition
CustomDelegate.cpp:195
dbe::CustomDelegate::setEditorData
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition
CustomDelegate.cpp:125
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:155
dbe::CustomDelegate::eventFilter
bool eventFilter(QObject *editor, QEvent *event)
Definition
CustomDelegate.cpp:204
dbe::CustomDelegate::setModelData
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition
CustomDelegate.cpp:139
confaccessor.hpp
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::tref
inner::configobject::tref tref
Definition
tref.hpp:36
Generated on
for DUNE-DAQ by
1.18.0