ATLAS Offline Software
Classes | Public Slots | Public Member Functions | Private Attributes | List of all members
VP1GeoTreeView Class Reference

#include <VP1GeoTreeView.h>

Inheritance diagram for VP1GeoTreeView:
Collaboration diagram for VP1GeoTreeView:

Classes

class  Imp
 

Public Slots

void updateAllNonHiddenIndices ()
 
void scheduleUpdateOfAllNonHiddenIndices ()
 

Public Member Functions

 VP1GeoTreeView (QWidget *parent=0)
 
virtual ~VP1GeoTreeView ()
 

Private Attributes

Impm_d
 

Detailed Description

Definition at line 22 of file VP1GeoTreeView.h.

Constructor & Destructor Documentation

◆ VP1GeoTreeView()

VP1GeoTreeView::VP1GeoTreeView ( QWidget *  parent = 0)

Definition at line 26 of file VP1GeoTreeView.cxx.

27  : QTreeView(parent), m_d(new Imp)
28 {
29  m_d->updatescheduled = false;
30 }

◆ ~VP1GeoTreeView()

VP1GeoTreeView::~VP1GeoTreeView ( )
virtual

Definition at line 33 of file VP1GeoTreeView.cxx.

34 {
35  delete m_d;
36 }

Member Function Documentation

◆ scheduleUpdateOfAllNonHiddenIndices

void VP1GeoTreeView::scheduleUpdateOfAllNonHiddenIndices ( )
slot

Definition at line 65 of file VP1GeoTreeView.cxx.

66 {
67  if (m_d->updatescheduled)
68  return;
69  QTimer::singleShot(0, this, SLOT(updateAllNonHiddenIndices()));
70 }

◆ updateAllNonHiddenIndices

void VP1GeoTreeView::updateAllNonHiddenIndices ( )
slot

Definition at line 39 of file VP1GeoTreeView.cxx.

40 {
41  if (m_d->updatescheduled)
42  m_d->updatescheduled = false;
43  bool save = updatesEnabled();
44  setUpdatesEnabled(false);
45 
46  //The following is a bit of a hack. Could probably be done better?
47  QModelIndexList oldselection = selectionModel()->selectedIndexes();
48  selectAll();
49  QModelIndexList allindexes = selectionModel()->selectedIndexes();
50  for ( QModelIndex idx : allindexes) {
51  update(idx);
52  }
53  selectionModel()->clearSelection();
54  for ( QModelIndex idx : oldselection )
55  selectionModel()->select(idx,QItemSelectionModel::Select);
56 
57 
58  if (save) {
59  setUpdatesEnabled(true);
60  update();
61  }
62 }

Member Data Documentation

◆ m_d

Imp* VP1GeoTreeView::m_d
private

Definition at line 44 of file VP1GeoTreeView.h.


The documentation for this class was generated from the following files:
VP1GeoTreeView::updateAllNonHiddenIndices
void updateAllNonHiddenIndices()
Definition: VP1GeoTreeView.cxx:39
checkTP.save
def save(self, fileName="./columbo.out")
Definition: checkTP.py:178
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Select
float Select(float *Efit, float *Tfit, int m)
Definition: GetEnergy.cxx:30
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
VP1GeoTreeView::Imp::updatescheduled
bool updatescheduled
Definition: VP1GeoTreeView.cxx:21
VP1GeoTreeView::m_d
Imp * m_d
Definition: VP1GeoTreeView.h:43
WriteBchToCool.update
update
Definition: WriteBchToCool.py:67