Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStringPropertyEditor.h
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 #ifndef QmitkStringPropertyEditor_h
13 #define QmitkStringPropertyEditor_h
14 
16 #include <QLineEdit>
17 #include <mitkPropertyObserver.h>
18 #include <mitkStringProperty.h>
19 
30 {
31  Q_OBJECT
32 
33 public:
39  QmitkStringPropertyEditor(mitk::StringProperty *property, QWidget *parent);
40 
43 
44 protected:
45  void PropertyChanged() override;
46  void PropertyRemoved() override;
47 
49 
50 protected slots:
51 
52  void onTextChanged(const QString &);
53 
54 private:
55 };
56 
57 #endif
#define MITKQTWIDGETSEXT_EXPORT
A QLineEdit that edits a mitk::StringProperty.
void PropertyRemoved() override
Called when the observed property is about to be deleted.
QmitkStringPropertyEditor(mitk::StringProperty *property, QWidget *parent)
Construct an editor for the given string property.
void PropertyChanged() override
Called when the observed property value has changed.
void onTextChanged(const QString &)
~QmitkStringPropertyEditor() override
Destructor.
mitk::StringProperty * m_StringProperty
Read-write observer for a mitk::BaseProperty.
Property for storing string values.