QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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
#include "
qgis_sip.h
"
21
#include "qgis_gui.h"
22
32
class
GUI_EXPORT
QgsFocusWatcher
:
public
QObject
33
{
34
Q_OBJECT
35
36
public
:
37
43
explicit
QgsFocusWatcher
( QObject *parent
SIP_TRANSFERTHIS
);
44
45
bool
eventFilter( QObject *obj, QEvent *event )
override
;
46
47
signals:
48
53
void
focusChanged
(
bool
focused );
54
56
void
focusIn
();
57
59
void
focusOut
();
60
61
};
62
63
#endif
//QGSFOCUSWATCHER_H
QgsFocusWatcher
A event filter for watching for focus events on a parent object.
Definition
qgsfocuswatcher.h:33
QgsFocusWatcher::focusIn
void focusIn()
Emitted when parent object gains focus.
QgsFocusWatcher::focusChanged
void focusChanged(bool focused)
Emitted when parent object's focus changes.
QgsFocusWatcher::focusOut
void focusOut()
Emitted when parent object loses focus.
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8