mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Add spacing again for forums, messages and channels.
Added a new base class "RSItemDelegate" for adding a spacing for the item and remove the focus rectangle of the empty text for items with only an icon. Removed existing classes "ForumsItemDelegate" and "MessagesItemDelegate". git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3771 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ca45c73dc2
commit
e20e9a529a
8 changed files with 139 additions and 68 deletions
|
@ -93,7 +93,10 @@ ChannelFeed::ChannelFeed(QWidget *parent)
|
|||
|
||||
treeView->setModel(model);
|
||||
|
||||
treeView->setItemDelegate(new ChanGroupDelegate());
|
||||
RSItemDelegate *itemDelegate = new ChanGroupDelegate(this);
|
||||
itemDelegate->removeFocusRect(COLUMN_POPULARITY);
|
||||
itemDelegate->setSpacing(QSize(0, 2));
|
||||
treeView->setItemDelegate(itemDelegate);
|
||||
|
||||
connect(treeView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectChannel(QModelIndex)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue