mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -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) ;
|
ui->hashBox->setDefaultTransferRequestFlags(fl) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ChatWidget::addChatHorizontalWidget(QWidget *w)
|
||||||
|
{
|
||||||
|
ui->verticalLayout->addWidget(w) ;
|
||||||
|
update() ;
|
||||||
|
}
|
||||||
|
|
||||||
void ChatWidget::addChatBarWidget(QWidget *w)
|
void ChatWidget::addChatBarWidget(QWidget *w)
|
||||||
{
|
{
|
||||||
ui->pluginButtonFrame->layout()->addWidget(w) ;
|
ui->pluginButtonFrame->layout()->addWidget(w) ;
|
||||||
|
|
|
@ -95,8 +95,13 @@ public:
|
||||||
bool setStyle();
|
bool setStyle();
|
||||||
const RSStyle *getStyle() { return &style; }
|
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) ;
|
void addChatBarWidget(QWidget *w) ;
|
||||||
|
|
||||||
|
// Adds a new horizonal widget in the layout of the chat window.
|
||||||
|
void addChatHorizontalWidget(QWidget *w) ;
|
||||||
|
|
||||||
bool isActive();
|
bool isActive();
|
||||||
void setDefaultExtraFileFlags(TransferRequestFlags f) ;
|
void setDefaultExtraFileFlags(TransferRequestFlags f) ;
|
||||||
void pasteText(const QString&);
|
void pasteText(const QString&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue