QGIS/python/gui/qgspixmaplabel.sip
Nyall Dawson 881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00

31 lines
838 B
Plaintext

/**
* @brief The QgsPixmapLabel class shows a pixmap and adjusts its size to the space given
* to the widget by the layout and keeping its aspect ratio.
*/
class QgsPixmapLabel : QLabel
{
%TypeHeaderCode
#include <qgspixmaplabel.h>
%End
public:
explicit QgsPixmapLabel( QWidget *parent /TransferThis/ = nullptr );
/**
* Calculates the height for the given width.
*
* @param width The width for the widget
* @return An appropriate height
*/
virtual int heightForWidth( int width ) const;
/**
* An optimal size for the widget. Effectively using the height
* determined from the width with the given aspect ratio.
* @return A size hint
*/
virtual QSize sizeHint() const;
public slots:
void setPixmap( const QPixmap & );
void resizeEvent( QResizeEvent * );
};