mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
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:
parent
d6408daafc
commit
9006c567a1
@ -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) ;
|
||||
|
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user