digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::TrashView Class Reference
+ Inheritance diagram for Digikam::TrashView:

Signals

void itemSelectionChanged ()
 
void signalEmptytrash ()
 

Public Member Functions

 TrashView (QWidget *const parent=nullptr)
 
ThumbnailSize getThumbnailSize () const
 
QUrl lastSelectedItemUrl () const
 
DTrashItemModelmodel () const
 
void selectLastSelected ()
 Highlights the last selected item when the view gets focus.
 
void setThumbnailSize (const ThumbnailSize &thumbSize)
 set thumbnail size to give to model
 
QString statusBarText () const
 
- Public Member Functions inherited from Digikam::StateSavingObject
 StateSavingObject (QObject *const host)
 Constructor.
 
virtual ~StateSavingObject ()
 Destructor.
 
StateSavingDepth getStateSavingDepth () const
 Returns the depth used for state saving or loading.
 
void loadState ()
 Invokes loading the class' state.
 
void saveState ()
 Invokes saving the class' state.
 
virtual void setConfigGroup (const KConfigGroup &group)
 Sets a dedicated config group that will be used to store and reload the state from.
 
virtual void setEntryPrefix (const QString &prefix)
 Define a prefix that will be used for every entry in the config group.
 
void setStateSavingDepth (const StateSavingDepth depth)
 Sets the depth used for state saving or loading.
 

Protected Member Functions

void doLoadState () override
 Implement this hook method for state loading.
 
void doSaveState () override
 Implement this hook method for state saving.
 
- Protected Member Functions inherited from Digikam::StateSavingObject
QString entryName (const QString &base) const
 Always use this method to create config group entry names.
 
KConfigGroup getConfigGroup () const
 Returns the config group that must be used for state saving and loading.
 

Additional Inherited Members

- Public Types inherited from Digikam::StateSavingObject
enum  StateSavingDepth { INSTANCE , DIRECT_CHILDREN , RECURSIVE }
 This enum defines the "depth" of the StateSavingObject::loadState() and StateSavingObject::saveState() methods. More...
 

Member Function Documentation

◆ doLoadState()

void Digikam::TrashView::doLoadState ( )
overrideprotectedvirtual

Use getConfigGroup() and entryName() for the implementation.

Implements Digikam::StateSavingObject.

◆ doSaveState()

void Digikam::TrashView::doSaveState ( )
overrideprotectedvirtual

Use getConfigGroup() and entryName() for the implementation.

Implements Digikam::StateSavingObject.

◆ getThumbnailSize()

ThumbnailSize Digikam::TrashView::getThumbnailSize ( ) const
Returns
current thumbnail size

◆ lastSelectedItemUrl()

QUrl Digikam::TrashView::lastSelectedItemUrl ( ) const
Returns
QUrl to the last selected item in view

◆ model()

DTrashItemModel * Digikam::TrashView::model ( ) const
Returns
model used for the view

◆ setThumbnailSize()

void Digikam::TrashView::setThumbnailSize ( const ThumbnailSize thumbSize)
Parameters
thumbSizesize to set

◆ statusBarText()

QString Digikam::TrashView::statusBarText ( ) const
Returns
text for the main status bar