26 #ifndef DIGIKAM_DCONFIG_DLG_VIEW_PRIVATE_H
27 #define DIGIKAM_DCONFIG_DLG_VIEW_PRIVATE_H
33 #include <QAbstractItemDelegate>
34 #include <QGridLayout>
35 #include <QStackedWidget>
36 #include <QAbstractProxyModel>
55 : QStackedWidget(parent)
66 return mMinimumSize.expandedTo(QStackedWidget::minimumSizeHint());
84 void updateTitleWidget(
const QModelIndex& index);
86 void updateSelection();
88 QList<QWidget*> collectPages(
const QModelIndex& parent = QModelIndex());
94 void _k_modelChanged();
95 void _k_dataChanged(
const QModelIndex&,
const QModelIndex&);
96 void _k_pageSelected(
const QItemSelection&,
const QItemSelection&);
124 namespace DConfigDlgInternal
138 QModelIndex indexAt(
const QPoint& point)
const override;
139 void scrollTo(
const QModelIndex& index, ScrollHint hint = EnsureVisible)
override;
140 QRect visualRect(
const QModelIndex& index)
const override;
144 QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
override;
145 int horizontalOffset()
const override;
146 int verticalOffset()
const override;
147 bool isIndexHidden(
const QModelIndex&)
const override;
148 void setSelection(
const QRect& , QFlags<QItemSelectionModel::SelectionFlag>)
override;
149 QRegion visualRegionForSelection(
const QItemSelection&)
const override;
163 void setModel(QAbstractItemModel* model)
override;
180 void setModel(QAbstractItemModel* model)
override;
188 void expandItems(
const QModelIndex& index = QModelIndex());
202 void setModel(QAbstractItemModel* model)
override;
203 QModelIndex indexAt(
const QPoint& point)
const override;
204 void scrollTo(
const QModelIndex& index, ScrollHint hint = EnsureVisible)
override;
205 QRect visualRect(
const QModelIndex& index)
const override;
206 QSize minimumSizeHint()
const override;
210 QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
override;
211 int horizontalOffset()
const override;
212 int verticalOffset()
const override;
213 bool isIndexHidden(
const QModelIndex&)
const override;
214 void setSelection(
const QRect& , QFlags<QItemSelectionModel::SelectionFlag>)
override;
215 QRegion visualRegionForSelection(
const QItemSelection&)
const override;
219 void currentPageChanged(
int);
220 void layoutChanged();
221 void dataChanged(
const QModelIndex&,
const QModelIndex&,
const QVector<int>& roles)
override;
225 QTabWidget* mTabWidget;
238 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
239 QSize sizeHint(
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
243 void drawFocus(QPainter*,
const QStyleOptionViewItem&,
const QRect&)
const;
261 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
262 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
263 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
264 QModelIndex parent(
const QModelIndex&)
const override;
265 QVariant data(
const QModelIndex& index,
int role)
const override;
266 QModelIndex mapFromSource(
const QModelIndex& index)
const override;
267 QModelIndex mapToSource(
const QModelIndex& index)
const override;
275 void addMapEntry(
const QModelIndex&);
290 SelectionModel(QAbstractItemModel*
const model, QObject*
const parent);
294 void clear()
override;
295 void select(
const QModelIndex& index, QItemSelectionModel::SelectionFlags command)
override;
296 void select(
const QItemSelection& selection, QItemSelectionModel::SelectionFlags command)
override;
Definition: dconfigdlgview_p.h:231
Definition: dconfigdlgview_p.h:253
Definition: dconfigdlgview_p.h:155
Definition: dconfigdlgview_p.h:131
Definition: dconfigdlgview_p.h:194
Definition: dconfigdlgview_p.h:173
Definition: dconfigdlgview_p.h:285
Definition: dconfigdlgwidgets.h:185
Definition: dconfigdlgview_p.h:77
DConfigDlgTitle * titleWidget
Definition: dconfigdlgview_p.h:111
QWidget * defaultWidget
Definition: dconfigdlgview_p.h:112
QGridLayout * layout
Definition: dconfigdlgview_p.h:109
QAbstractItemView * view
Definition: dconfigdlgview_p.h:114
DConfigDlgView * q_ptr
Definition: dconfigdlgview_p.h:100
DConfigDlgStackedWidget * stack
Definition: dconfigdlgview_p.h:110
DConfigDlgView::FaceType faceType
Definition: dconfigdlgview_p.h:105
QAbstractItemModel * model
Definition: dconfigdlgview_p.h:104
A base class which can handle multiple pages.
Definition: dconfigdlgview.h:59
FaceType
Definition: dconfigdlgview.h:84
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43