105 enum AdvancedPrefsModelColumn {
113 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
115 void setFilter(
const QString& filter);
116 void setShowChangedValues(
bool show_changed_values);
118 QVariant headerData(
int section, Qt::Orientation orientation,
119 int role = Qt::DisplayRole)
const;
120 QVariant data(
const QModelIndex &index,
int role)
const;
121 Qt::ItemFlags flags(
const QModelIndex &index)
const;
122 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
124 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
127 void setFirstColumnSpanned(QTreeView* tree,
const QModelIndex &index = QModelIndex());
130 bool filterAcceptItem(
PrefsItem& item)
const;
135 bool show_changed_values_;
136 const QChar passwordChar_;
145 enum ModulePrefsModelColumn {
150 enum ModulePrefsRoles {
151 ModuleName = Qt::UserRole + 1,
152 ModuleHelp = Qt::UserRole + 2
155 QVariant data(
const QModelIndex &index,
int role)
const;
156 Qt::ItemFlags flags(
const QModelIndex &index)
const;
157 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
159 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
162 bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const;
166 QString advancedPrefName_;