Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryGuiTkEvent.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "berryGuiTkEvent.h"
18 
19 #include <QTextStream>
20 
21 namespace berry {
22 
23 namespace GuiTk {
24 
25 Event::Event() :
26 item(nullptr), detail(0), x(0), y(0),
27 width(0), height(0), button(0),
28 character(0), keyCode(0), stateMask(0),
29 text(""), doit(true)
30 {
31 
32 }
33 
34 QString Event::ToString() const
35 {
36  QString str;
37  QTextStream stream(&str);
38  stream << "GUI SelectionEvent: " << " item=" << item << " detail=" << detail
39  << " x=" << x << " y=" << y << " width=" << width << " height=" << height
40  << " stateMask=" << stateMask << " text=" << text << " doit=" << doit
41  << '\n';
42 
43  return str;
44 }
45 
46 }
47 
48 }
QString ToString() const override