Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkCategoryItem.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 
13 #ifndef QmitkCategoryItem_h
14 #define QmitkCategoryItem_h
15 
16 #include <QRegularExpression>
17 #include <QStandardItem>
18 
19 class QmitkCategoryItem : public QStandardItem
20 {
21 public:
22  explicit QmitkCategoryItem(const QString& category);
23  ~QmitkCategoryItem() override;
24 
29  bool HasMatch(const QRegularExpression& re) const;
30 
33  bool GetVisible() const;
34 
37  void SetVisible(bool visible);
38 };
39 
40 #endif
QmitkCategoryItem::SetVisible
void SetVisible(bool visible)
Enable or disable visibility of this item including its children.
QmitkCategoryItem::~QmitkCategoryItem
~QmitkCategoryItem() override
QmitkCategoryItem::HasMatch
bool HasMatch(const QRegularExpression &re) const
Check if any view item child of this category item matches the given regular expression.
QmitkCategoryItem
Definition: QmitkCategoryItem.h:19
QmitkCategoryItem::QmitkCategoryItem
QmitkCategoryItem(const QString &category)
QmitkCategoryItem::GetVisible
bool GetVisible() const
Get visibility of this item including its children.