mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Set a Text Alignment when Status Label is hided/shown.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7774 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6b690560fc
commit
a895261bd5
2 changed files with 11 additions and 6 deletions
|
@ -1408,10 +1408,15 @@ void ChatWidget::updatePeersCustomStateString(const QString& peer_id, const QStr
|
|||
// the peers status string has changed
|
||||
if (status_string.isEmpty()) {
|
||||
ui->statusMessageLabel->hide();
|
||||
ui->titleLabel->setAlignment ( Qt::AlignTop );
|
||||
ui->statusLabel->setAlignment ( Qt::AlignTop );
|
||||
|
||||
} else {
|
||||
ui->statusMessageLabel->show();
|
||||
status_text = RsHtml().formatText(NULL, status_string, RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
||||
ui->statusMessageLabel->setText(status_text);
|
||||
ui->titleLabel->setAlignment ( Qt::AlignVCenter );
|
||||
ui->statusLabel->setAlignment ( Qt::AlignVCenter );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue