Qt
Widgets
pqClickableLabel.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 pqClickableLabel_h
5
#define pqClickableLabel_h
6
7
#include "
pqWidgetsModule.h
"
8
9
#include <QLabel>
10
15
class
PQWIDGETS_EXPORT
pqClickableLabel
:
public
QLabel
16
{
17
Q_OBJECT
18
19
public
:
23
pqClickableLabel
() =
delete
;
24
30
pqClickableLabel
(QWidget* widget,
const
QString& text,
const
QString& tooltip,
31
const
QString& statusTip, QPixmap* pixmap, QWidget* parent);
32
36
~
pqClickableLabel
()
override
=
default
;
37
38
Q_SIGNALS:
45
void
onClicked(QWidget* widget);
46
47
protected
:
48
void
mousePressEvent(QMouseEvent* event)
override
;
49
50
QWidget* Widget =
nullptr
;
51
};
52
53
#endif
pqWidgetsModule.h
pqClickableLabel
A simple clickable label that mimics a push button and emits onClicked event.
Definition:
pqClickableLabel.h:15
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
Generated by
1.8.13 on Tue Oct 1 2024