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

Public Types

enum  State { NoImage , Loading , ImageLoaded , ImageLoadingFailed }
 

Signals

void imageChanged ()
 
void imageSizeChanged (const QSizeF &size)
 
void loaded ()
 
void loadingFailed ()
 
void showContextMenu (QGraphicsSceneContextMenuEvent *e)
 
void stateChanged (int state)
 

Public Member Functions

QRectF boundingRect () const override
 
void clearCache ()
 
 DImgPreviewItem (QGraphicsItem *const parent=nullptr)
 
 DImgPreviewItemPrivate ()
 
 GraphicsDImgItemPrivate ()
 
DImg image () const
 
void init (DImgPreviewItem *const q)
 
void init (GraphicsDImgItem *const q)
 
bool isLoaded () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
QString path () const
 
void reload ()
 
void setDisplayingWidget (QWidget *const widget)
 
void setImage (const DImg &img)
 
void setPath (const QString &path, bool rePreview=false)
 
void setPreloadPaths (const QStringList &pathsToPreload)
 
void setPreviewSettings (const PreviewSettings &settings)
 
void sizeHasChanged ()
 
State state () const
 
QString userLoadingHint () const override
 
ImageZoomSettingszoomSettings ()
 
const ImageZoomSettingszoomSettings () const
 
 ~DImgPreviewItem () override
 

Public Attributes

CachedPixmaps cachedPixmaps
 
bool exifRotate
 
DImg image
 
QString path
 
QStringList pathsToPreload
 
PreviewLoadThreadpreloadThread
 
PreviewSettings previewSettings
 
int previewSize
 
PreviewLoadThreadpreviewThread
 
DImgPreviewItem::State state
 
ImageZoomSettings zoomSettings
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *e) override
 
 DImgPreviewItem (DImgPreviewItemPrivate &dd, QGraphicsItem *const parent=nullptr)
 

Protected Attributes

GraphicsDImgItemPrivate *const d_ptr
 

Member Enumeration Documentation

◆ State

Enumerator
NoImage 
Loading 
ImageLoaded 
ImageLoadingFailed 

Constructor & Destructor Documentation

◆ DImgPreviewItem() [1/2]

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

◆ ~DImgPreviewItem()

Digikam::DImgPreviewItem::~DImgPreviewItem ( )
override

◆ DImgPreviewItem() [2/2]

Digikam::DImgPreviewItem::DImgPreviewItem ( DImgPreviewItemPrivate dd,
QGraphicsItem *const  parent = nullptr 
)
explicitprotected

Member Function Documentation

◆ boundingRect()

◆ clearCache()

void Digikam::GraphicsDImgItem::clearCache ( )
inherited

◆ contextMenuEvent()

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

◆ DImgPreviewItemPrivate()

Digikam::DImgPreviewItem::DImgPreviewItemPrivate ( )
explicit

◆ GraphicsDImgItemPrivate()

Digikam::GraphicsDImgItem::GraphicsDImgItemPrivate ( )
inlineexplicitinherited

◆ image()

DImg Digikam::GraphicsDImgItem::image ( ) const
inherited

◆ imageChanged

void Digikam::GraphicsDImgItem::imageChanged ( )
signalinherited

◆ imageSizeChanged

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

◆ init() [1/2]

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

◆ init() [2/2]

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

◆ isLoaded()

bool Digikam::DImgPreviewItem::isLoaded ( ) const

◆ loaded

void Digikam::DImgPreviewItem::loaded ( )
signal

◆ loadingFailed

void Digikam::DImgPreviewItem::loadingFailed ( )
signal

◆ paint()

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

◆ path()

QString Digikam::DImgPreviewItem::path ( ) const

◆ reload()

void Digikam::DImgPreviewItem::reload ( )

◆ setDisplayingWidget()

void Digikam::DImgPreviewItem::setDisplayingWidget ( QWidget *const  widget)

◆ setImage()

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

◆ setPath()

void Digikam::DImgPreviewItem::setPath ( const QString &  path,
bool  rePreview = false 
)

◆ setPreloadPaths()

void Digikam::DImgPreviewItem::setPreloadPaths ( const QStringList &  pathsToPreload)

References pathsToPreload.

◆ setPreviewSettings()

void Digikam::DImgPreviewItem::setPreviewSettings ( const PreviewSettings settings)

References reload().

◆ showContextMenu

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

◆ sizeHasChanged()

void Digikam::GraphicsDImgItem::sizeHasChanged ( )
inherited

◆ state()

State Digikam::DImgPreviewItem::state ( ) const

◆ stateChanged

void Digikam::DImgPreviewItem::stateChanged ( int  state)
signal

Referenced by setPath().

◆ userLoadingHint()

QString Digikam::DImgPreviewItem::userLoadingHint ( ) const
overridevirtual

◆ zoomSettings() [1/2]

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

◆ zoomSettings() [2/2]

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

Member Data Documentation

◆ cachedPixmaps

CachedPixmaps Digikam::GraphicsDImgItem::cachedPixmaps
mutableinherited

◆ d_ptr

GraphicsDImgItemPrivate* const Digikam::GraphicsDImgItem::d_ptr
protectedinherited

◆ exifRotate

bool Digikam::DImgPreviewItem::exifRotate

◆ image

◆ path

QString Digikam::DImgPreviewItem::path

Referenced by reload(), and setPath().

◆ pathsToPreload

QStringList Digikam::DImgPreviewItem::pathsToPreload

Referenced by setPreloadPaths().

◆ preloadThread

PreviewLoadThread* Digikam::DImgPreviewItem::preloadThread

◆ previewSettings

PreviewSettings Digikam::DImgPreviewItem::previewSettings

◆ previewSize

int Digikam::DImgPreviewItem::previewSize

◆ previewThread

PreviewLoadThread* Digikam::DImgPreviewItem::previewThread

◆ state

DImgPreviewItem::State Digikam::DImgPreviewItem::state

◆ zoomSettings


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