17 #ifndef QGSDETAILEDITEMDATA_H 18 #define QGSDETAILEDITEMDATA_H 40 void setTitle(
const QString &title );
41 void setDetail(
const QString &detail );
42 void setCategory(
const QString &category );
43 void setIcon(
const QPixmap &icon );
44 void setCheckable(
const bool flag );
45 void setChecked(
const bool flag );
46 void setEnabled(
bool flag );
55 void setRenderAsWidget(
bool flag );
57 QString title()
const;
58 QString detail()
const;
59 QString category()
const;
61 bool isCheckable()
const;
62 bool isChecked()
const;
63 bool isEnabled()
const;
64 bool isRenderedAsWidget()
const;
72 bool mCheckableFlag =
false;
73 bool mCheckedFlag =
false;
74 bool mEnabledFlag =
true;
75 bool mRenderAsWidgetFlag =
false;
81 #endif //QGSDETAILEDITEMDATA_H This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom ...
Q_DECLARE_METATYPE(QModelIndex)