Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
QmitkStringPropertyView.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 ============================================================================*/
13 
15  : QLabel(parent), PropertyView(property), m_StringProperty(property)
16 {
18 }
19 
21 {
22 }
23 
25 {
26  if (m_Property)
27  setText(m_StringProperty->GetValue());
28 }
29 
31 {
32  m_Property = nullptr;
33  m_StringProperty = nullptr;
34  setText("n/a");
35 }
virtual const char * GetValue() const
const mitk::BaseProperty * m_Property
QmitkStringPropertyView(const mitk::StringProperty *, QWidget *parent)
const mitk::StringProperty * m_StringProperty
Property for strings.