Qt
Components
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
pqComponentsModule.h
PQCOMPONENTS_EXPORT
#define PQCOMPONENTS_EXPORT
Definition:
pqComponentsModule.h:15
pqLabel
pqLabel is a subclass of QLabel that emits a clicked() signal when the label text is clicked...
Definition:
pqLabel.h:15
Generated by
1.8.13 on Tue Oct 1 2024