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
QmitkBasePropertyView.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 "
QmitkBasePropertyView.h
"
17
18
QmitkBasePropertyView::QmitkBasePropertyView
(
const
mitk::BaseProperty
*property, QWidget *parent)
19
: QLabel(parent), PropertyView(property)
20
{
21
PropertyChanged
();
22
}
23
24
QmitkBasePropertyView::~QmitkBasePropertyView
()
25
{
26
}
27
28
void
QmitkBasePropertyView::PropertyChanged
()
29
{
30
if
(
m_Property
)
31
setText(
m_Property
->
GetValueAsString
().c_str());
32
}
33
34
void
QmitkBasePropertyView::PropertyRemoved
()
35
{
36
m_Property
=
nullptr
;
37
setText(
"n/a"
);
38
}
QmitkBasePropertyView::PropertyChanged
virtual void PropertyChanged() override
Definition:
QmitkBasePropertyView.cpp:28
QmitkBasePropertyView.h
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:39
mitk::BaseProperty::GetValueAsString
virtual std::string GetValueAsString() const
Definition:
mitkBaseProperty.cpp:33
QmitkBasePropertyView::~QmitkBasePropertyView
virtual ~QmitkBasePropertyView()
Definition:
QmitkBasePropertyView.cpp:24
mitk::PropertyView::m_Property
const mitk::BaseProperty * m_Property
Definition:
mitkPropertyObserver.h:68
QmitkBasePropertyView::QmitkBasePropertyView
QmitkBasePropertyView(const mitk::BaseProperty *, QWidget *parent)
Definition:
QmitkBasePropertyView.cpp:18
QmitkBasePropertyView::PropertyRemoved
virtual void PropertyRemoved() override
Definition:
QmitkBasePropertyView.cpp:34
git
MITK
Modules
QtWidgetsExt
src
QmitkBasePropertyView.cpp
Generated on Fri Feb 3 2017 20:52:12 for Medical Imaging Interaction Toolkit by
1.8.9.1