ATLAS Offline Software
VP1TextBrowser.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 
8 #include <QMenu>
9 #include <QContextMenuEvent>
10 
11 //____________________________________________________________________
13  : QTextBrowser(parent)
14 {
15 }
16 
17 //____________________________________________________________________
19 {
20 }
21 
22 //____________________________________________________________________
23 void VP1TextBrowser::contextMenuEvent(QContextMenuEvent * e) {
24  QMenu *menu = createStandardContextMenu();
25  menu->addSeparator();
26  QAction * clearAct = menu->addAction("C&lear all");
27  QAction * zoominAct = menu->addAction("Zoom &in");
28  QAction * zoomoutAct = menu->addAction("Zoom &out");
29 
30  QAction * selAct = menu->exec(e->globalPos());
31  delete menu;
32  if (selAct==clearAct)
33  clear();
34  else if (selAct==zoominAct)
35  zoomIn();
36  else if (selAct==zoomoutAct)
37  zoomOut();
38 
39 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
python.TriggerConfig.menu
menu
Definition: TriggerConfig.py:842
VP1TextBrowser::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *)
Definition: VP1TextBrowser.cxx:23
menu
make the sidebar many part of the config
Definition: hcg.cxx:551
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1TextBrowser::~VP1TextBrowser
virtual ~VP1TextBrowser()
Definition: VP1TextBrowser.cxx:18
VKalVrtAthena::varHolder_detail::clear
void clear(T &var)
Definition: NtupleVars.h:48
VP1TextBrowser.h
VP1TextBrowser::VP1TextBrowser
VP1TextBrowser(QWidget *parent=0)
Definition: VP1TextBrowser.cxx:12