mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-20 19:06:09 -05:00
few changes added to channel gui - list of groups and channels was replaced with a tree view
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1636 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
656380415d
commit
e26829e76a
6 changed files with 361 additions and 138 deletions
23
retroshare-gui/src/gui/ChanGroupDelegate.cpp
Normal file
23
retroshare-gui/src/gui/ChanGroupDelegate.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue