ATLAS Offline Software
Loading...
Searching...
No Matches
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//____________________________________________________________________
21
22//____________________________________________________________________
23void 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}
VP1TextBrowser(QWidget *parent=0)
void contextMenuEvent(QContextMenuEvent *)
virtual ~VP1TextBrowser()
make the sidebar many part of the config
Definition hcg.cxx:552