Qt
Widgets
pqHighlightableToolButton.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 pqHighlightableToolButton_h
5
#define pqHighlightableToolButton_h
6
7
#include "
pqWidgetsModule.h
"
8
#include <QPalette>
9
#include <QToolButton>
10
18
class
PQWIDGETS_EXPORT
pqHighlightableToolButton
:
public
QToolButton
19
{
20
Q_OBJECT
21
typedef
QToolButton Superclass;
22
23
public
:
24
pqHighlightableToolButton
(QWidget* parent =
nullptr
);
25
~
pqHighlightableToolButton
()
override
;
26
27
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
31
void
highlight(
bool
clear =
false
);
32
void
clear
() { this->highlight(
true
); }
33
34
private
:
35
Q_DISABLE_COPY(
pqHighlightableToolButton
);
36
QPalette ResetPalette;
37
};
38
39
#endif
pqWidgetsModule.h
pqHighlightableToolButton
QToolButton with ability to highlight the button.
Definition:
pqHighlightableToolButton.h:18
PQWIDGETS_EXPORT
#define PQWIDGETS_EXPORT
Definition:
pqWidgetsModule.h:15
pqHighlightableToolButton::clear
void clear()
Definition:
pqHighlightableToolButton.h:32
Generated by
1.8.13 on Sun Jan 12 2025