NorMIT-nav
22.09
An IGT application
cxWidgetObscuredListener.h
Go to the documentation of this file.
1
/*=========================================================================
2
This file is part of CustusX, an Image Guided Therapy Application.
3
4
Copyright (c) SINTEF Department of Medical Technology.
5
All rights reserved.
6
7
CustusX is released under a BSD 3-Clause license.
8
9
See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10
=========================================================================*/
11
12
#ifndef CXWIDGETOBSCUREDLISTENER_H
13
#define CXWIDGETOBSCUREDLISTENER_H
14
15
#include "cxResourceWidgetsExport.h"
16
17
#include <QObject>
18
class
QTimer;
19
#include "boost/shared_ptr.hpp"
20
21
namespace
cx
22
{
23
31
class
cxResourceWidgets_EXPORT
WidgetObscuredListener
:
public
QObject
32
{
33
Q_OBJECT
34
public
:
35
WidgetObscuredListener
(QWidget* listenedTo);
36
bool
isObscured()
const
;
37
38
signals:
39
void
obscured(
bool
visible);
40
private
slots:
41
void
timeoutSlot();
42
private
:
43
bool
mObscuredAtLastCheck;
44
QWidget* mWidget;
45
QTimer *mRemoveTimer;
46
};
47
48
}
49
50
#endif // CXWIDGETOBSCUREDLISTENER_H
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cx::WidgetObscuredListener
Definition:
cxWidgetObscuredListener.h:31
CX
source
resource
widgets
cxWidgetObscuredListener.h
Generated on Tue Sep 13 2022 11:06:18 for NorMIT-nav by
1.8.17