#include <CustomLabel.h>
Public Slots | |
void | setPixmap (const QPixmap &pixmap) |
void | setImagePath (const QString &imagePath) |
void | imageZoomedIn () |
void | imageZoomedOut () |
Public Member Functions | |
CustomLabel (QWidget *parent=0) | |
virtual | ~CustomLabel () |
Private Attributes | |
CImageHolder * | m_pImageHolderInstance |
QPixmap | m_VisibleImageState |
CustomLabel::CustomLabel | ( | QWidget * | parent = 0 |
) |
CustomLabel::~CustomLabel | ( | ) | [virtual] |
References m_pImageHolderInstance.
void CustomLabel::setPixmap | ( | const QPixmap & | pixmap | ) | [slot] |
This function sets pixmap to CImageHolder object. This function is called when image within CImageHolder object needs to change
pixmap |
References m_pImageHolderInstance, m_VisibleImageState, and CImageHolder::setPixmap().
Referenced by CMainPictureWallArea::showImageOnWall().
void CustomLabel::setImagePath | ( | const QString & | imagePath | ) | [slot] |
This function sets the absoulute path of the image, Whever image zoom is called CImageHolder class loads the image from this path and set the scaled image to zoomed CImageHolder widget
imagePath | abosolute path of the image which needs to be displayed while image zoom in is called |
References m_pImageHolderInstance, and CImageHolder::setImagePath().
Referenced by CMainPictureWallArea::showImageOnWall().
void CustomLabel::imageZoomedIn | ( | ) | [slot] |
This slot is called whenever zoom in on respective CImageHolder widget is called. In this application, This slot is called when mouse pressed event occurs on image.
References m_pImageHolderInstance, and CImageHolder::setOriginalPixmap().
void CustomLabel::imageZoomedOut | ( | ) | [slot] |
This slot is called whenever zoom out on respective CImageHolder widget is called. In this application, This slot is called when mouse pressed event occurs on image and image is already zoomed in state and also when mouse is moved away from the zoomed in image.
References m_pImageHolderInstance, m_VisibleImageState, and CImageHolder::setPixmap().
CImageHolder* CustomLabel::m_pImageHolderInstance [private] |
Referenced by CustomLabel(), imageZoomedIn(), imageZoomedOut(), setImagePath(), setPixmap(), and ~CustomLabel().
QPixmap CustomLabel::m_VisibleImageState [private] |
Referenced by imageZoomedOut(), and setPixmap().