QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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 "qgis_gui.h"
20#include "qgis_sip.h"
21
22#include <QObject>
23
34
35class GUI_EXPORT QgsFocusWatcher : public QObject
36{
37 Q_OBJECT
38
39 public:
40
46 explicit QgsFocusWatcher( QObject *parent SIP_TRANSFERTHIS );
47
48 bool eventFilter( QObject *obj, QEvent *event ) override;
49
50 signals:
51
56 void focusChanged( bool focused );
57
59 void focusIn();
60
62 void focusOut();
63};
64
65#endif //QGSFOCUSWATCHER_H
void focusIn()
Emitted when parent object gains focus.
void focusChanged(bool focused)
Emitted when parent object's focus changes.
void focusOut()
Emitted when parent object loses focus.
bool eventFilter(QObject *obj, QEvent *event) override
QgsFocusWatcher(QObject *parent)
Constructor for QgsFocusWatcher.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53