QGIS/python/gui/qgspixmaplabel.sip.in

60 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgspixmaplabel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsPixmapLabel : QLabel
{
2017-06-07 16:16:21 +02:00
%Docstring
The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given
2017-12-15 10:36:55 -04:00
to the widget by the layout and keeping its aspect ratio.
2017-06-07 16:16:21 +02:00
%End
%TypeHeaderCode
2017-06-07 16:16:21 +02:00
#include "qgspixmaplabel.h"
%End
public:
explicit QgsPixmapLabel( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsPixmapLabel
%End
2017-06-07 16:16:21 +02:00
virtual int heightForWidth( int width ) const;
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Calculates the height for the given width.
:param width: The width for the widget
:return: An appropriate height
2017-06-07 16:16:21 +02:00
%End
virtual QSize sizeHint() const;
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
An optimal size for the widget. Effectively using the height
determined from the width with the given aspect ratio.
:return: A size hint
2017-06-07 16:16:21 +02:00
%End
public slots:
void setPixmap( const QPixmap & );
2017-06-07 16:16:21 +02:00
virtual void resizeEvent( QResizeEvent * );
};
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgspixmaplabel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/