Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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,
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
#include "
QmitkStringPropertyView.h
"
17
18
QmitkStringPropertyView::QmitkStringPropertyView
(
const
mitk::StringProperty
*property, QWidget *parent)
19
: QLabel(parent), PropertyView(property), m_StringProperty(property)
20
{
21
PropertyChanged
();
22
}
23
24
QmitkStringPropertyView::~QmitkStringPropertyView
()
25
{
26
}
27
28
void
QmitkStringPropertyView::PropertyChanged
()
29
{
30
if
(
m_Property
)
31
setText(
m_StringProperty
->
GetValue
());
32
}
33
34
void
QmitkStringPropertyView::PropertyRemoved
()
35
{
36
m_Property
=
nullptr
;
37
m_StringProperty
=
nullptr
;
38
setText(
"n/a"
);
39
}
mitk::StringProperty::GetValue
virtual const char * GetValue() const
QmitkStringPropertyView::PropertyChanged
virtual void PropertyChanged() override
Definition:
QmitkStringPropertyView.cpp:28
QmitkStringPropertyView::~QmitkStringPropertyView
virtual ~QmitkStringPropertyView()
Definition:
QmitkStringPropertyView.cpp:24
mitk::PropertyView::m_Property
const mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:68
QmitkStringPropertyView::QmitkStringPropertyView
QmitkStringPropertyView(const mitk::StringProperty *, QWidget *parent)
Definition:
QmitkStringPropertyView.cpp:18
QmitkStringPropertyView::PropertyRemoved
virtual void PropertyRemoved() override
Definition:
QmitkStringPropertyView.cpp:34
QmitkStringPropertyView::m_StringProperty
const mitk::StringProperty * m_StringProperty
Definition:
QmitkStringPropertyView.h:37
QmitkStringPropertyView.h
mitk::StringProperty
Property for strings.
Definition:
mitkStringProperty.h:38
git
MITK
Modules
QtWidgetsExt
src
QmitkStringPropertyView.cpp
Generated on Fri Feb 3 2017 20:52:15 for Medical Imaging Interaction Toolkit by
1.8.9.1