OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::ImagePreview Class Reference

#include "ImagePreview.h"

Inheritance diagram for ot::ImagePreview:
ot::QWidgetInterface

Signals

void imagePixedClicked (const QPoint &_px)
 

Public Member Functions

 ImagePreview ()
 
 ImagePreview (const QImage &_image)
 
virtual ~ImagePreview ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
virtual const QWidget * getQWidget (void) const override
 
virtual void paintEvent (QPaintEvent *_event) override
 
virtual QSize sizeHint (void) const override
 
virtual void wheelEvent (QWheelEvent *_event) override
 
virtual void keyPressEvent (QKeyEvent *_event) override
 
virtual void mousePressEvent (QMouseEvent *_event) override
 
void setImage (const QImage &_image)
 
const QImage & image (void) const
 
void setImageMargins (const QMargins &_margins)
 
const QMargins & getImageMargins (void) const
 
void setEnableResizing (bool _enable)
 
bool getEnableResizing (void) const
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from ot::QWidgetInterface
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 

Constructor & Destructor Documentation

◆ ImagePreview() [1/2]

ot::ImagePreview::ImagePreview ( )

◆ ImagePreview() [2/2]

ot::ImagePreview::ImagePreview ( const QImage & _image)

◆ ~ImagePreview()

ot::ImagePreview::~ImagePreview ( )
virtual

Member Function Documentation

◆ getEnableResizing()

bool ot::ImagePreview::getEnableResizing ( void ) const
inline

◆ getImageMargins()

const QMargins & ot::ImagePreview::getImageMargins ( void ) const
inline

◆ getQWidget() [1/2]

virtual const QWidget * ot::ImagePreview::getQWidget ( void ) const
inlineoverridevirtual

Implements ot::QWidgetInterface.

◆ getQWidget() [2/2]

virtual QWidget * ot::ImagePreview::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ image()

const QImage & ot::ImagePreview::image ( void ) const
inline

◆ imagePixedClicked

void ot::ImagePreview::imagePixedClicked ( const QPoint & _px)
signal

◆ keyPressEvent()

void ot::ImagePreview::keyPressEvent ( QKeyEvent * _event)
overridevirtual

◆ mousePressEvent()

void ot::ImagePreview::mousePressEvent ( QMouseEvent * _event)
overridevirtual

◆ paintEvent()

void ot::ImagePreview::paintEvent ( QPaintEvent * _event)
overridevirtual

◆ setEnableResizing()

void ot::ImagePreview::setEnableResizing ( bool _enable)
inline

◆ setImage()

void ot::ImagePreview::setImage ( const QImage & _image)

◆ setImageMargins()

void ot::ImagePreview::setImageMargins ( const QMargins & _margins)

◆ sizeHint()

QSize ot::ImagePreview::sizeHint ( void ) const
overridevirtual

◆ wheelEvent()

void ot::ImagePreview::wheelEvent ( QWheelEvent * _event)
overridevirtual

The documentation for this class was generated from the following files: