Revision 1 (by moose, 2006/03/06 10:35:57) Initial Import
#include "SciQLvPItem.h"
#include <QPainter>
#include <QPalette>
#include <QStyle>

//void SciQLvPItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment )
//{
/*	QTreeWidget *lv = treeWidget();
	int boxsize = 12;
	QRect r = QRect(boxsize/2, height()/2 - boxsize/2, boxsize, boxsize);

	int i = 0;
	if(isSelected(i))
		p->fillRect(0, 0, width, height(), QBrush(cg.highlight()));
	else
		p->fillRect(0, 0, width, height(), QBrush(cg.background()));

	p->drawText(20, 0, width, height(), Qt::AlignVCenter, text(0));

	if(isOpen())
		lv->style().drawPrimitive(QStyle::PE_ArrowDown, p, r, cg, QStyle::Style_Enabled, QStyleOption(this));
	else
		lv->style().drawPrimitive(QStyle::PE_ArrowRight, p, r, cg, QStyle::Style_Enabled, QStyleOption(this));*/
//}

//bool isSelected(SciQLvPItem *li, int &y)
//{
/*	if(li->isSelected()) {
		y = li->itemPos();
		return true;
	}

	Q3ListViewItem *child = li->firstChild();
	while(child) {
		if(isSelected(child, y))
			return true;

		child = child->nextSibling();
	}

	return false;*/
//}

//bool SciQLvPItem::isSelected(int &y) { return /*::isSelected(this, y)*/; }