ATLAS Offline Software
ZappedVolumeListModel.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 //____________________________________________________________________
9  : QAbstractListModel(parent)
10 {
11 }
12 
13 //____________________________________________________________________
15 {
16 }
17 
18 //____________________________________________________________________
19 void ZappedVolumeListModel::activated(const QModelIndex& index)
20 {
21  m_zappedhandles.at(index.row())->setState(VP1GeoFlags::CONTRACTED);
22 }
ZappedVolumeListModel::m_zappedhandles
QList< VolumeHandle * > m_zappedhandles
Definition: ZappedVolumeListModel.h:38
index
Definition: index.py:1
ZappedVolumeListModel::~ZappedVolumeListModel
virtual ~ZappedVolumeListModel()
Definition: ZappedVolumeListModel.cxx:14
ZappedVolumeListModel::activated
void activated(const QModelIndex &)
Definition: ZappedVolumeListModel.cxx:19
ZappedVolumeListModel::ZappedVolumeListModel
ZappedVolumeListModel(QObject *parent=0)
Definition: ZappedVolumeListModel.cxx:8
ZappedVolumeListModel.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1GeoFlags::CONTRACTED
@ CONTRACTED
Definition: VP1GeoFlags.h:87