mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-08 15:29:35 -04: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
2 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue