Example #1
0
void traverse_commit_list(struct rev_info *revs,
			  show_commit_fn show_commit,
			  show_object_fn show_object,
			  void *show_data)
{
	do_traverse(revs, show_commit, show_object, show_data, NULL, NULL);
}
Example #2
0
void NKView::do_traverse(PREGTREENODE regnode, QStandardItem *regItem)
{
   Mapregnode[regItem->index()]=regnode;
   for(PREGTREENODE &node:regnode->child){
       QStandardItem *childItem=new QStandardItem(node->name);
       regItem->appendRow(childItem);
       do_traverse(node,childItem);
   }
}
Example #3
0
void NKView::Traverse(PREGTREENODE regtreenode)
{

    this->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
    this->setEditTriggers(QAbstractItemView::NoEditTriggers);
   // nkMode->setHorizontalHeaderLabels(QStringList()<<"");
    this->setHeaderHidden(true);
    QStandardItem *treeItem=new QStandardItem(regtreenode->name);
    if(regtreenode->isdeleted)
        treeItem->setForeground(QBrush(QColor(200,0,0)));
    nkMode->appendRow(treeItem);
    do_traverse(regtreenode,treeItem);
    this->setFocus();
    this->setModel(nkMode);

}
Example #4
0
void traverse_commit_list_filtered(
	struct list_objects_filter_options *filter_options,
	struct rev_info *revs,
	show_commit_fn show_commit,
	show_object_fn show_object,
	void *show_data,
	struct oidset *omitted)
{
	filter_object_fn filter_fn = NULL;
	filter_free_fn filter_free_fn = NULL;
	void *filter_data = NULL;

	filter_data = list_objects_filter__init(omitted, filter_options,
						&filter_fn, &filter_free_fn);
	do_traverse(revs, show_commit, show_object, show_data,
		    filter_fn, filter_data);
	if (filter_data && filter_free_fn)
		filter_free_fn(filter_data);
}