ATLAS Offline Software
Loading...
Searching...
No Matches
VP1QtApplication Class Reference

#include <VP1QtApplication.h>

Inheritance diagram for VP1QtApplication:
Collaboration diagram for VP1QtApplication:

Public Member Functions

 VP1QtApplication (int &argc, char **argv)
virtual ~VP1QtApplication ()
virtual bool notify (QObject *rec, QEvent *ev)

Detailed Description

Definition at line 43 of file VP1QtApplication.h.

Constructor & Destructor Documentation

◆ VP1QtApplication()

VP1QtApplication::VP1QtApplication ( int & argc,
char ** argv )
inline

Definition at line 46 of file VP1QtApplication.h.

46: QApplication(argc, argv) {};

◆ ~VP1QtApplication()

virtual VP1QtApplication::~VP1QtApplication ( )
inlinevirtual

Definition at line 47 of file VP1QtApplication.h.

47{};

Member Function Documentation

◆ notify()

bool VP1QtApplication::notify ( QObject * rec,
QEvent * ev )
virtual

Definition at line 39 of file VP1QtApplication.cxx.

40{
41 //std::cout << (3, "Called VP1QtApplication::notify()") << std::endl;
42
43 // only for debug
44 //VP1Msg::message("VP1QtApplication:notify()");
45
46 // for normal events we pass to QApplication:notify()...
47 try {
48 return QApplication::notify(rec, ev);
49 }
50 catch (std::exception &e) {
51 VP1Msg::message("VP1QtApplication: std::exception: ");
52 qWarning("VP1QtApplication: Error '%s' sending event '%s' to object '%s' ('%s')",
53 e.what(), typeid(*ev).name(), qPrintable(rec->objectName()),
54 typeid(*rec).name());
55 qWarning("throwing the exception again...");
56 throw e;
57 return false;
58 }
59 catch (char const *str) {
60 VP1Msg::message("VP1QtApplication: EXCEPTION: " + QString(str) );
61 return false;
62 }
63 catch (...) {
64 VP1Msg::message("VP1QtApplication: Unknown exception!");
65 return false;
66 }
67 //VP1Msg::message("VP1QtApplication: outside catch..."); // only for DEBUG
68 return false;
69}
static void message(const QString &, IVP1System *sys=0)
Definition VP1Msg.cxx:30
int ev
Definition globals.cxx:25

The documentation for this class was generated from the following files: