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 *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-01-04 22:51:18 +11:00
|
|
|
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
|
|
|
|
|
2016-01-04 22:51:18 +11:00
|
|
|
%TypeHeaderCode
|
2017-06-07 16:16:21 +02:00
|
|
|
#include "qgspixmaplabel.h"
|
2016-01-04 22:51:18 +11:00
|
|
|
%End
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
explicit QgsPixmapLabel( QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsPixmapLabel
|
|
|
|
%End
|
2017-06-07 16:16:21 +02:00
|
|
|
|
2016-01-04 22:51:18 +11: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
|
|
|
|
:rtype: int
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
%End
|
2016-01-04 22:51:18 +11:00
|
|
|
|
|
|
|
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
|
|
|
|
:rtype: QSize
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2016-01-04 22:51:18 +11:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setPixmap( const QPixmap & );
|
2017-06-07 16:16:21 +02:00
|
|
|
virtual void resizeEvent( QResizeEvent * );
|
|
|
|
|
2016-01-04 22:51:18 +11:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|