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

Protected Member Functions

void _k_dataChanged (const QModelIndex &, const QModelIndex &)
 
void _k_modelChanged ()
 
void _k_pageSelected (const QItemSelection &, const QItemSelection &)
 
void _k_rebuildGui ()
 
void cleanupPages ()
 
QList< QWidget * > collectPages (const QModelIndex &parent=QModelIndex())
 
 DConfigDlgViewPrivate (DConfigDlgView *const)
 
DConfigDlgView::FaceType detectAutoFace () const
 
void updateSelection ()
 
void updateTitleWidget (const QModelIndex &index)
 

Protected Attributes

QWidget * defaultWidget
 
DConfigDlgView::FaceType faceType
 
QGridLayout * layout
 
QAbstractItemModel * model
 
DConfigDlgViewq_ptr
 
DConfigDlgStackedWidgetstack
 
DConfigDlgTitletitleWidget
 
QAbstractItemView * view
 

Constructor & Destructor Documentation

◆ DConfigDlgViewPrivate()

Digikam::DConfigDlgViewPrivate::DConfigDlgViewPrivate ( DConfigDlgView * const  _parent)
explicitprotected

Member Function Documentation

◆ _k_dataChanged()

void Digikam::DConfigDlgViewPrivate::_k_dataChanged ( const QModelIndex &  ,
const QModelIndex &   
)
protected

When data has changed we update the header and icon for the currently selected page.

References updateTitleWidget(), and view.

◆ _k_modelChanged()

void Digikam::DConfigDlgViewPrivate::_k_modelChanged ( )
protected

If the face type is Auto, we rebuild the GUI whenever the layout of the model changes.

Set the stack to the minimum size of the largest widget.

References _k_rebuildGui(), Digikam::DConfigDlgView::Auto, collectPages(), faceType, model, Digikam::DConfigDlgStackedWidget::setMinimumSize(), stack, and updateSelection().

◆ _k_pageSelected()

void Digikam::DConfigDlgViewPrivate::_k_pageSelected ( const QItemSelection &  index,
const QItemSelection &  previous 
)
protected

◆ _k_rebuildGui()

void Digikam::DConfigDlgViewPrivate::_k_rebuildGui ( )
protected

◆ cleanupPages()

void Digikam::DConfigDlgViewPrivate::cleanupPages ( )
protected

References collectPages(), and stack.

◆ collectPages()

QList< QWidget * > Digikam::DConfigDlgViewPrivate::collectPages ( const QModelIndex &  parent = QModelIndex())
protected

◆ detectAutoFace()

DConfigDlgView::FaceType Digikam::DConfigDlgViewPrivate::detectAutoFace ( ) const
protected

◆ updateSelection()

void Digikam::DConfigDlgViewPrivate::updateSelection ( )
protected

References model, and view.

Referenced by _k_modelChanged().

◆ updateTitleWidget()

void Digikam::DConfigDlgViewPrivate::updateTitleWidget ( const QModelIndex &  index)
protected

Member Data Documentation

◆ defaultWidget

QWidget* Digikam::DConfigDlgViewPrivate::defaultWidget
protected

Referenced by _k_pageSelected().

◆ faceType

DConfigDlgView::FaceType Digikam::DConfigDlgViewPrivate::faceType
protected

◆ layout

QGridLayout* Digikam::DConfigDlgViewPrivate::layout
protected

Referenced by _k_rebuildGui().

◆ model

QAbstractItemModel* Digikam::DConfigDlgViewPrivate::model
protected

◆ q_ptr

DConfigDlgView* Digikam::DConfigDlgViewPrivate::q_ptr
protected

◆ stack

DConfigDlgStackedWidget* Digikam::DConfigDlgViewPrivate::stack
protected

◆ titleWidget

DConfigDlgTitle* Digikam::DConfigDlgViewPrivate::titleWidget
protected

Referenced by _k_rebuildGui(), and updateTitleWidget().

◆ view

QAbstractItemView* Digikam::DConfigDlgViewPrivate::view
protected

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