2017-06-02 10:25:17 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmenuheader.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMenuHeader : QWidget
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Custom widget for displaying subheaders within a QMenu in a standard style.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:class:`QgsMenuHeaderWidgetAction`
|
2018-05-28 11:31:08 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-06-02 10:25:17 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmenuheader.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit QgsMenuHeader( const QString &text, QWidget *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsMenuHeader, showing the specified ``text``.
|
2017-06-02 10:25:17 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QSize minimumSizeHint() const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-06-02 10:25:17 +10:00
|
|
|
virtual QSize sizeHint() const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-06-02 10:25:17 +10:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual void paintEvent( QPaintEvent *event );
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class QgsMenuHeaderWidgetAction: QWidgetAction
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Custom QWidgetAction for displaying subheaders within a QMenu in a standard style.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:class:`QgsMenuHeader`
|
2018-05-28 11:31:08 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
2017-06-02 10:25:17 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmenuheader.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsMenuHeaderWidgetAction( const QString &text, QObject *parent = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsMenuHeaderWidgetAction, showing the specified ``text``.
|
2017-06-02 10:25:17 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmenuheader.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|