QGIS/python/gui/qgsfocuswatcher.sip.in

67 lines
2.1 KiB
Plaintext
Raw Normal View History

2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfocuswatcher.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFocusWatcher : QObject
{
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A event filter for watching for focus events on a parent object. Usually QObjects must
subclass and override methods like focusOutEvent to handle focus events. Using this class
as an event filter avoids the need to subclass objects and the focus events can be directly
caught using the emitted signals.
2017-05-23 14:44:34 +02:00
.. versionadded:: 2.16
%End
2017-05-23 14:44:34 +02:00
%TypeHeaderCode
#include "qgsfocuswatcher.h"
%End
public:
explicit QgsFocusWatcher( QObject *parent /TransferThis/ );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsFocusWatcher.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent: parent widget to catch focus events for. This class will automatically be
installed as an event filter for parent.
2017-05-23 14:44:34 +02:00
%End
virtual bool eventFilter( QObject *obj, QEvent *event );
signals:
void focusChanged( bool focused );
2017-05-23 14:44:34 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when parent object's focus changes.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param focused: true if object gained focus, false if object lost focus
2017-05-23 14:44:34 +02:00
%End
void focusIn();
2017-05-23 14:44:34 +02:00
%Docstring
Emitted when parent object gains focus.
%End
void focusOut();
2017-05-23 14:44:34 +02:00
%Docstring
Emitted when parent object loses focus.
%End
};
2017-05-23 14:44:34 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfocuswatcher.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/