little improvements for Channels and Forums Design

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1977 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-05 01:49:58 +00:00
parent 2f9f390dbf
commit c9e5e72edd
4 changed files with 399 additions and 95 deletions

View file

@ -47,7 +47,7 @@ ChannelFeed::ChannelFeed(QWidget *parent)
/* Invoke the Qt Designer generated object setup routine */
setupUi(this);
connect(chanButton, SIGNAL(clicked()), this, SLOT(createChannel()));
connect(actionCreate_Channel, SIGNAL(triggered()), this, SLOT(createChannel()));
connect(postButton, SIGNAL(clicked()), this, SLOT(sendMsg()));
connect(subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeChannel ( void ) ) );
connect(unsubscribeButton, SIGNAL( clicked( void ) ), this, SLOT( unsubscribeChannel ( void ) ) );
@ -171,6 +171,11 @@ ChannelFeed::ChannelFeed(QWidget *parent)
item2->setForeground(QBrush(QColor(79, 79, 79)));
item3->setForeground(QBrush(QColor(79, 79, 79)));
item4->setForeground(QBrush(QColor(79, 79, 79)));
QMenu *channelmenu = new QMenu();
channelmenu->addAction(actionCreate_Channel);
channelmenu->addSeparator();
channelpushButton->setMenu(channelmenu);
QTimer *timer = new QTimer(this);
@ -718,3 +723,4 @@ void ChannelFeed::toggleSelection(const QModelIndex &index)
if (index.child(0, 0).isValid())
selectionModel->select(index, QItemSelectionModel::Toggle);
}