![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | SetZoomFlag { JustSetFactor = 0 , CenterView = 1 << 0 , SnapZoomFactor = 1 << 1 } |
typedef QFlags< SetZoomFlag > | SetZoomFlags |
Signals | |
void | fitToWindowToggled (bool fitToWindow) |
void | zoomFactorChanged (double) |
Public Member Functions | |
SinglePhotoPreviewLayout (QObject *const parent) | |
void | addItem (GraphicsDImgItem *const item) |
Set the item to layout. | |
bool | atMaxZoom () const |
bool | atMinZoom () const |
bool | isFitToWindow () const |
double | maxZoomFactor () const |
The zoom range for incrementing and decrementing. | |
double | minZoomFactor () const |
double | realZoomFactor () const |
void | setGraphicsView (GraphicsDImgView *const view) |
Set the graphics view, and associated scene, to operate on. | |
void | setMaxZoomFactor (double z) |
void | setMinZoomFactor (double z) |
void | setScaleFitToWindow (bool value) |
Set to true to scale small images to fit to window. | |
double | zoomFactor () const |
Protected Member Functions | |
void | updateLayout () |
void Digikam::SinglePhotoPreviewLayout::addItem | ( | GraphicsDImgItem *const | item | ) |
For a SinglePhoto layout, typically, you can add only one item.