mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix missing groupchat icon, clean up some code
This commit is contained in:
parent
94fb31633e
commit
6f30308a2c
|
@ -11,16 +11,12 @@ FriendWidget::FriendWidget(int FriendId, QString id)
|
|||
{
|
||||
this->setMouseTracking(true);
|
||||
this->setAutoFillBackground(true);
|
||||
//this->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed);
|
||||
//this->setMinimumWidth(225);
|
||||
this->setFixedWidth(225);
|
||||
this->setFixedHeight(55);
|
||||
this->setLayout(&layout);
|
||||
//layout.setSpacing(0);
|
||||
layout.setSpacing(0);
|
||||
layout.setMargin(0);
|
||||
layout.setStretchFactor(this, 100);
|
||||
//this->setFixedWidth(225);
|
||||
//this->setMaximumWidth();
|
||||
textLayout.setSpacing(0);
|
||||
textLayout.setMargin(0);
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ void GroupWidget::setAsActiveChatroom()
|
|||
QPalette pal3;
|
||||
pal3.setColor(QPalette::Background, Qt::white);
|
||||
this->setPalette(pal3);
|
||||
avatar.setPixmap(QPixmap(":img/group.png"));
|
||||
avatar.setPixmap(QPixmap(":img/group_dark.png"));
|
||||
}
|
||||
|
||||
void GroupWidget::setAsInactiveChatroom()
|
||||
|
@ -168,5 +168,5 @@ void GroupWidget::setAsInactiveChatroom()
|
|||
QPalette pal3;
|
||||
pal3.setColor(QPalette::Background, QColor(65,65,65,255));
|
||||
this->setPalette(pal3);
|
||||
avatar.setPixmap(QPixmap("img/group.png"));
|
||||
avatar.setPixmap(QPixmap(":img/group.png"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user