Medical Imaging Interaction Toolkit  2018.4.99-e1268d66
Medical Imaging Interaction Toolkit
berryGuiTkEvent.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "berryGuiTkEvent.h"
14 
15 #include <QTextStream>
16 
17 namespace berry {
18 
19 namespace GuiTk {
20 
21 Event::Event() :
22 item(nullptr), detail(0), x(0), y(0),
23 width(0), height(0), button(0),
24 character(0), keyCode(0), stateMask(0),
25 text(""), doit(true)
26 {
27 
28 }
29 
30 QString Event::ToString() const
31 {
32  QString str;
33  QTextStream stream(&str);
34  stream << "GUI SelectionEvent: " << " item=" << item << " detail=" << detail
35  << " x=" << x << " y=" << y << " width=" << width << " height=" << height
36  << " stateMask=" << stateMask << " text=" << text << " doit=" << doit
37  << '\n';
38 
39  return str;
40 }
41 
42 }
43 
44 }
QString ToString() const override