QGIS/python/gui/qgsuserinputdockwidget.sip

27 lines
889 B
Plaintext
Raw Normal View History

/** \ingroup gui
* @brief The QgsUserInputDockWidget class is a dock widget that shall be used to display widgets for user inputs.
* It can be used by map tools, plugins, etc.
* Several widgets can be displayed at once, they will be separated by a separator. Widgets will be either layout horizontally or vertically.
* The dock is automatically hidden if it contains no widget.
*/
2015-06-02 08:03:33 +02:00
class QgsUserInputDockWidget : QDockWidget
{
%TypeHeaderCode
#include "qgsuserinputdockwidget.h"
%End
public:
QgsUserInputDockWidget( QWidget *parent /TransferThis/ = 0 );
2015-06-02 08:03:33 +02:00
~QgsUserInputDockWidget();
/** Add a widget to be displayed in the dock.
* @param widget widget to add. Ownership is not transferred.
*/
void addUserInputWidget( QWidget *widget );
2015-06-02 08:03:33 +02:00
protected:
//! will not display the dock if it contains no widget
void paintEvent( QPaintEvent *event );
};