-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpqCheckEventOverlay.h
More file actions
41 lines (31 loc) · 964 Bytes
/
pqCheckEventOverlay.h
File metadata and controls
41 lines (31 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#ifndef _pqCheckEventOverlay_h
#define _pqCheckEventOverlay_h
#include <QWidget>
/**
Display a green or red overlay rectangle on top of parent widget
\sa pqEventTranslator
*/
class pqCheckEventOverlay : public QWidget
{
Q_OBJECT
typedef QWidget Superclass;
public:
pqCheckEventOverlay(QWidget* parent = 0);
// true if the overlayed widget can be checked, false otherwise
bool Valid;
// true if the overlayed widget in an opengl widget, false otherwise
bool GlWidget;
// true if the size of the overlay is specifically defined
// via resize slot, false otherwise
bool Specific;
// Static overlauy margin
static const int OVERLAY_MARGIN = 2;
// Static overlay pen width
static const int OVERLAY_PEN_WIDTH = 5;
protected:
void paintEvent(QPaintEvent*) override;
};
#endif