25 #ifndef DIGIKAM_DCONFIG_DLG_MODELS_H
26 #define DIGIKAM_DCONFIG_DLG_MODELS_H
30 #include <QAbstractItemModel>
40 class DConfigDlgModelPrivate;
107 Q_PROPERTY(QString name READ name WRITE setName)
108 Q_PROPERTY(QString header READ header WRITE setHeader)
109 Q_PROPERTY(QIcon icon READ icon WRITE setIcon)
110 Q_PROPERTY(
bool checkable READ isCheckable WRITE setCheckable)
111 Q_PROPERTY(
bool checked READ isChecked WRITE setChecked)
116 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled)
144 QWidget* widget()
const;
150 void setName(
const QString& name);
155 QString name()
const;
167 void setHeader(
const QString& header);
172 QString header()
const;
178 void setIcon(
const QIcon& icon);
190 void setCheckable(
bool checkable);
195 bool isCheckable()
const;
200 bool isChecked()
const;
205 bool isEnabled()
const;
212 void setEnabled(
bool);
217 void setChecked(
bool checked);
334 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
335 bool setData(
const QModelIndex&
index,
const QVariant&
value,
int role = Qt::EditRole)
override;
336 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
337 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const override;
338 QModelIndex
parent(
const QModelIndex&
index)
const override;
339 int rowCount(
const QModelIndex&
parent = QModelIndex())
const override;
362 Q_PRIVATE_SLOT(d_func(),
void _k_itemChanged())
363 Q_PRIVATE_SLOT(d_func(),
void _k_itemToggled(
bool))
Definition: dconfigdlgmodels_p.h:34
A base class for a model used by DConfigDlgView.
Definition: dconfigdlgmodels.h:56
~DConfigDlgModel() override
Definition: dconfigdlgmodels.cpp:52
DConfigDlgModelPrivate *const d_ptr
Definition: dconfigdlgmodels.h:95
DConfigDlgModel(QObject *const parent=nullptr)
Definition: dconfigdlgmodels.cpp:39
Role
Definition: dconfigdlgmodels.h:66
@ HeaderRole
Definition: dconfigdlgmodels.h:70
@ WidgetRole
Definition: dconfigdlgmodels.h:76
Definition: dconfigdlgmodels.h:105
void toggled(bool checked)
Definition: dconfigdlgmodels_p.h:86
Definition: dconfigdlgmodels.h:248
void toggled(DConfigDlgWdgItem *page, bool checked)
DConfigDlgWdgModel(QObject *const parent=nullptr)
Definition: dconfigdlgmodels.cpp:314
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: dconfigdlgmodels.cpp:475
~DConfigDlgWdgModel() override
Definition: dconfigdlgmodels.cpp:319
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Definition: dconfigdlgmodels.cpp:430
void removePage(DConfigDlgWdgItem *item)
Definition: dconfigdlgmodels.cpp:623
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: dconfigdlgmodels.cpp:406
DConfigDlgWdgItem * addSubPage(DConfigDlgWdgItem *parent, QWidget *widget, const QString &name)
Definition: dconfigdlgmodels.cpp:575
DConfigDlgWdgItem * addPage(QWidget *widget, const QString &name)
Definition: dconfigdlgmodels.cpp:491
DConfigDlgWdgItem * item(const QModelIndex &index) const
Definition: dconfigdlgmodels.cpp:668
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: dconfigdlgmodels.cpp:323
DConfigDlgWdgItem * insertPage(DConfigDlgWdgItem *before, QWidget *widget, const QString &name)
Definition: dconfigdlgmodels.cpp:525
QModelIndex parent(const QModelIndex &index) const override
Definition: dconfigdlgmodels.cpp:455
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Definition: dconfigdlgmodels.cpp:370
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition: dconfigdlgmodels.cpp:328
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43