digiKam
Digikam::GraphicsDImgItem Class Reference
+ Inheritance diagram for Digikam::GraphicsDImgItem:

Signals

void imageChanged ()
 
void imageSizeChanged (const QSizeF &size)
 
void showContextMenu (QGraphicsSceneContextMenuEvent *e)
 

Public Member Functions

QRectF boundingRect () const override
 
void clearCache ()
 
 GraphicsDImgItem (QGraphicsItem *const parent=nullptr)
 
 GraphicsDImgItemPrivate ()
 
DImg image () const
 
void init (GraphicsDImgItem *const q)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
void setImage (const DImg &img)
 
void sizeHasChanged ()
 
virtual QString userLoadingHint () const
 
ImageZoomSettingszoomSettings ()
 
const ImageZoomSettingszoomSettings () const
 
 ~GraphicsDImgItem () override
 

Public Attributes

CachedPixmaps cachedPixmaps
 
DImg image
 
ImageZoomSettings zoomSettings
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
 
 GraphicsDImgItem (GraphicsDImgItemPrivate &dd, QGraphicsItem *const parent)
 

Protected Attributes

GraphicsDImgItemPrivate *const d_ptr
 

Constructor & Destructor Documentation

◆ GraphicsDImgItem() [1/2]

Digikam::GraphicsDImgItem::GraphicsDImgItem ( QGraphicsItem *const  parent = nullptr)
explicit

References d_ptr.

◆ ~GraphicsDImgItem()

Digikam::GraphicsDImgItem::~GraphicsDImgItem ( )
override

◆ GraphicsDImgItem() [2/2]

Digikam::GraphicsDImgItem::GraphicsDImgItem ( GraphicsDImgItemPrivate dd,
QGraphicsItem *const  parent 
)
protected

References d_ptr.

Member Function Documentation

◆ boundingRect()

◆ clearCache()

void Digikam::GraphicsDImgItem::clearCache ( )

◆ contextMenuEvent()

void Digikam::GraphicsDImgItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  e)
overrideprotected

References showContextMenu().

◆ GraphicsDImgItemPrivate()

Digikam::GraphicsDImgItem::GraphicsDImgItemPrivate ( )
inlineexplicit

◆ image()

DImg Digikam::GraphicsDImgItem::image ( ) const

◆ imageChanged

void Digikam::GraphicsDImgItem::imageChanged ( )
signal

Referenced by setImage().

◆ imageSizeChanged

void Digikam::GraphicsDImgItem::imageSizeChanged ( const QSizeF &  size)
signal

Referenced by sizeHasChanged().

◆ init()

void Digikam::GraphicsDImgItem::init ( GraphicsDImgItem *const  q)

◆ paint()

void Digikam::GraphicsDImgItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = nullptr 
)
override

◆ setImage()

void Digikam::GraphicsDImgItem::setImage ( const DImg img)

Sets the DImg to be drawn by this item. Note: DImg is explicitly shared, and no copy is automatically taken here.

References imageChanged(), Digikam::DImg::originalSize(), Digikam::DImg::size(), and sizeHasChanged().

Referenced by Digikam::ImageRegionItem::ImageRegionItem(), and Digikam::LightTablePreview::showDragAndDropMessage().

◆ showContextMenu

void Digikam::GraphicsDImgItem::showContextMenu ( QGraphicsSceneContextMenuEvent *  e)
signal

Referenced by contextMenuEvent().

◆ sizeHasChanged()

void Digikam::GraphicsDImgItem::sizeHasChanged ( )

References imageSizeChanged().

Referenced by setImage().

◆ userLoadingHint()

virtual QString Digikam::GraphicsDImgItem::userLoadingHint ( ) const
inlinevirtual

Reimplemented in Digikam::DImgPreviewItem.

◆ zoomSettings() [1/2]

ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( )

◆ zoomSettings() [2/2]

const ImageZoomSettings* Digikam::GraphicsDImgItem::zoomSettings ( ) const

Member Data Documentation

◆ cachedPixmaps

CachedPixmaps Digikam::GraphicsDImgItem::cachedPixmaps
mutable

◆ d_ptr

GraphicsDImgItemPrivate* const Digikam::GraphicsDImgItem::d_ptr
protected

Referenced by GraphicsDImgItem().

◆ image

◆ zoomSettings


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