mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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);
|
||
|
}
|