예제 #1
0
QRectF PYInfoPad::drawHeader(QPainter *painter, qreal initY)
{
    QPointF HeaderTopLeft(0,initY);
    QPointF HeaderBottomRight(width(),initY + SIW_HEADER_HEIGHT);
    QRectF HeaderRect(HeaderTopLeft,HeaderBottomRight);

    painter->setPen(Qt::NoPen);
    SIW_APPLY_HEADER_GRADIENT(HeaderRect);
    painter->drawRect(HeaderRect);

    return HeaderRect;
}
예제 #2
0
void ListPage::DrawHeader()
{
	Rect r = HeaderRect();
	short int iFrameWidth = DrawHeaderFrame(r);
	r.Shrink(iFrameWidth);
	if (m_dwFlags & LF_COLUMNS_IN_HEADER)
	{
		Rect rcSubItem = r;
		for (int j = 0; j< m_columnCount; j++)
		{
			rcSubItem.w = m_columnInfo[j]->GetWidth();
			DrawHeaderItem(j, rcSubItem);
			rcSubItem.x += FIXINT2SHORTWARNING(m_columnInfo[j]->GetWidth());
		}
	}
	else
	{
		DrawHeaderItem(0, r);
	}
}