QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
gui
qgsfocuswatcher.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfocuswatcher.h
3
-----------------
4
Date : April 2016
5
Copyright : (C) 2016 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSFOCUSWATCHER_H
17
#define QGSFOCUSWATCHER_H
18
19
#include <QObject>
20
30
class
GUI_EXPORT
QgsFocusWatcher
:
public
QObject
31
{
32
Q_OBJECT
33
34
public
:
35
40
explicit
QgsFocusWatcher
(
QObject
* parent );
41
42
virtual
bool
eventFilter
(
QObject
* obj,
QEvent
* event )
override
;
43
44
signals:
45
49
void
focusChanged(
bool
focused );
50
52
void
focusIn();
53
55
void
focusOut();
56
57
};
58
59
#endif //QGSFOCUSWATCHER_H
QEvent
QgsFocusWatcher
A event filter for watching for focus events on a parent object.
Definition:
qgsfocuswatcher.h:30
QObject
QObject::eventFilter
virtual bool eventFilter(QObject *watched, QEvent *event)
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13