QVariant TaskContextMenuModel::data(const QModelIndex &index, int role) const { if (index.row() < 0 || index.row() >= rowCount(QModelIndex())) return QVariant(); if (index.row() < rowOffset()) return staticData(static_cast<OptionType>(index.row()), role); const int tagRow = index.row() - rowOffset(); QAbstractItemModel *tagModel = m_task->checkableTagModel(); if (tagRow < 0 || tagRow >= tagModel->rowCount()) { qWarning() << "TaskContextMenuModel: invalid index" << tagRow; return QVariant(); } QModelIndex tagIndex = tagModel->index(tagRow, 0); switch (role) { case TextRole: return tagIndex.data(CheckableTagModel::ItemTextRole); case IconRole: return ""; case CheckableRole: return true; case DismissRole: return false; case Qt::CheckStateRole: return tagIndex.data(Qt::CheckStateRole); } return QVariant(); }
StdUInt testlist::Parent::getNumFreeParents() { return staticData().NumFreeParents; }
Void testlist::Parent::setFirstFreeParent(const Parent & value) { staticData().FirstFreeParent = value.id(); }
Void testhash::Parent::setChildTableUsed(StdUInt value) { staticData().ChildTableUsed = value; }
Void simplest::Simple::setUsed(StdUInt value) { staticData().Used = value; }
Void simplest::Simple::setNumFreeSimples(StdUInt value) { staticData().NumFreeSimples = value; }
Void simplest::Simple::setFirstFreeSimple(const Simple & value) { staticData().FirstFreeSimple = value.id(); }
Void testlist::Parent::setUsed(StdUInt value) { staticData().Used = value; }
Void testlist::Child::setFirstFreeChild(const Child & value) { staticData().FirstFreeChild = value.id(); }
testlist::Child testlist::Child::getFirstFreeChild() { return Child(staticData().FirstFreeChild); }
Void testhash::Parent::setNum__ChildTableBlock__Parents(StdUInt value) { staticData().Num__ChildTableBlock__Parents = value; }
StdUInt testhash::Parent::getNum__ChildTableBlock__Parents() { return staticData().Num__ChildTableBlock__Parents; }
Void testhash::Parent::setLast__ChildTableBlock__Parent(const Parent & value) { staticData().Last__ChildTableBlock__Parent = value.id(); }
testhash::Parent testhash::Parent::getLast__ChildTableBlock__Parent() { return Parent(staticData().Last__ChildTableBlock__Parent); }
Void testlist::Parent::setNumFreeParents(StdUInt value) { staticData().NumFreeParents = value; }
StdUInt testlist::Child::getNumFreeChilds() { return staticData().NumFreeChilds; }
StdUInt testlist::Parent::getUsed() { return staticData().Used; }
Void testlist::Child::setNumFreeChilds(StdUInt value) { staticData().NumFreeChilds = value; }
simplest::Simple simplest::Simple::getFirstFreeSimple() { return Simple(staticData().FirstFreeSimple); }
StdUInt testlist::Child::getUsed() { return staticData().Used; }
StdUInt simplest::Simple::getNumFreeSimples() { return staticData().NumFreeSimples; }
Void testlist::Child::setUsed(StdUInt value) { staticData().Used = value; }
StdUInt simplest::Simple::getUsed() { return staticData().Used; }
testlist::Parent testlist::Parent::getFirstFreeParent() { return Parent(staticData().FirstFreeParent); }
bool XMLHttpRequest::isAllowedHTTPHeader(const String& name) { return !staticData().m_forbiddenRequestHeaders.contains(name) && !name.startsWith(staticData().m_proxyHeaderPrefix, false) && !name.startsWith(staticData().m_secHeaderPrefix, false); }
StdUInt testhash::Parent::getChildTableUsed() { return staticData().ChildTableUsed; }