TocIterator const TocModel::tocIterator(QModelIndex const & index) const
{
TocMap::const_iterator map_it = toc_map_.find(index);
- BOOST_ASSERT(map_it != toc_map_.end());
+ BOOST_ASSERT(map_it != toc_map_.end());
return map_it->second;
}
if (map_it == model_map_.end())
return QModelIndex();
-
+
return map_it->second;
}
++iter;
}
-
+
setHeaderData(0, Qt::Horizontal, QVariant("title"), Qt::DisplayRole);
// emit headerDataChanged();
}
QModelIndex const & parent)
{
int curdepth = iter->depth() + 1;
-
+
int current_row;
QModelIndex child_item;
--iter;
return;
}
-
+
maxdepth_ = max(maxdepth_, iter->depth());
mindepth_ = min(mindepth_, iter->depth());
current_row = rowCount(parent);