added method to add new widget in chatWidget

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7451 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-07-15 15:59:12 +00:00
parent d6408daafc
commit 9006c567a1
2 changed files with 11 additions and 0 deletions

View File

@ -198,6 +198,12 @@ void ChatWidget::setDefaultExtraFileFlags(TransferRequestFlags fl)
ui->hashBox->setDefaultTransferRequestFlags(fl) ;
}
void ChatWidget::addChatHorizontalWidget(QWidget *w)
{
ui->verticalLayout->addWidget(w) ;
update() ;
}
void ChatWidget::addChatBarWidget(QWidget *w)
{
ui->pluginButtonFrame->layout()->addWidget(w) ;

View File

@ -95,7 +95,12 @@ public:
bool setStyle();
const RSStyle *getStyle() { return &style; }
// Adds one widget in the chat bar. Used to add e.g. new buttons. The widget should be
// small enough in size.
void addChatBarWidget(QWidget *w) ;
// Adds a new horizonal widget in the layout of the chat window.
void addChatHorizontalWidget(QWidget *w) ;
bool isActive();
void setDefaultExtraFileFlags(TransferRequestFlags f) ;