mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
e26829e76a
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1636 b45a01b8-16f6-495d-af2f-9b41ad6348cc
24 lines
552 B
C++
24 lines
552 B
C++
/*
|
|
* ChanGroupDelegate.cpp
|
|
*
|
|
* Created on: Sep 7, 2009
|
|
* Author: alex
|
|
*/
|
|
|
|
#include "ChanGroupDelegate.h"
|
|
#include <QApplication>
|
|
#include <QPainter>
|
|
#include <QColor>
|
|
|
|
void ChanGroupDelegate::paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const
|
|
{
|
|
if (index.child(0, 0).isValid()) {
|
|
painter->setPen(Qt::blue);
|
|
QStyleOptionButton opt;
|
|
opt.rect = option.rect;
|
|
QApplication::style()->drawControl(QStyle::CE_PushButtonBevel, &opt, painter);
|
|
}
|
|
|
|
QItemDelegate::paint(painter, option, index);
|
|
}
|