pqLabel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqLabel_h
5 #define pqLabel_h
6 
7 #include "pqComponentsModule.h"
8 
9 #include <QLabel>
10 
15 class PQCOMPONENTS_EXPORT pqLabel : public QLabel
16 {
17  Q_OBJECT
18 
19 public:
20  pqLabel(const QString& text, QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags{});
21  ~pqLabel() override;
22 
23  void mousePressEvent(QMouseEvent* event) override;
24 
25 Q_SIGNALS:
26  void clicked();
27 };
28 
29 #endif // pqLabel_h
#define PQCOMPONENTS_EXPORT
pqLabel is a subclass of QLabel that emits a clicked() signal when the label text is clicked...
Definition: pqLabel.h:15