mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 09:18:45 -04:00
Changed the additional buttons of ChatLobbyDialog and AudioPopupChatDialog to QToolButton.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9ca0775933
commit
b49ba8b98f
4 changed files with 22 additions and 18 deletions
|
@ -66,10 +66,11 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::WF
|
|||
|
||||
// Add a button to invite friends.
|
||||
//
|
||||
inviteFriendsButton = new QPushButton ;
|
||||
inviteFriendsButton = new QToolButton ;
|
||||
inviteFriendsButton->setMinimumSize(QSize(28,28)) ;
|
||||
inviteFriendsButton->setMaximumSize(QSize(28,28)) ;
|
||||
inviteFriendsButton->setText(QString()) ;
|
||||
inviteFriendsButton->setAutoRaise(true) ;
|
||||
inviteFriendsButton->setToolTip(tr("Invite friends to this lobby"));
|
||||
|
||||
{
|
||||
|
@ -83,10 +84,11 @@ ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::WF
|
|||
|
||||
getChatWidget()->addChatBarWidget(inviteFriendsButton) ;
|
||||
|
||||
unsubscribeButton = new QPushButton ;
|
||||
unsubscribeButton = new QToolButton ;
|
||||
unsubscribeButton->setMinimumSize(QSize(28,28)) ;
|
||||
unsubscribeButton->setMaximumSize(QSize(28,28)) ;
|
||||
unsubscribeButton->setText(QString()) ;
|
||||
unsubscribeButton->setAutoRaise(true) ;
|
||||
unsubscribeButton->setToolTip(tr("Leave this lobby (Unsubscribe)"));
|
||||
|
||||
{
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "ui_ChatLobbyDialog.h"
|
||||
#include "ChatDialog.h"
|
||||
|
||||
class QToolButton;
|
||||
|
||||
class ChatLobbyDialog: public ChatDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -85,8 +87,8 @@ private:
|
|||
QString _lobby_name ;
|
||||
time_t lastUpdateListTime;
|
||||
|
||||
QPushButton *inviteFriendsButton ;
|
||||
QPushButton *unsubscribeButton ;
|
||||
QToolButton *inviteFriendsButton ;
|
||||
QToolButton *unsubscribeButton ;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ChatLobbyDialog ui;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue