1
0
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:
Kevin Flynn 2014-07-03 00:06:20 -07:00
parent 94fb31633e
commit 6f30308a2c
2 changed files with 3 additions and 7 deletions

View File

@ -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);

View File

@ -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"));
}