mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -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
|
// the peers status string has changed
|
||||||
if (status_string.isEmpty()) {
|
if (status_string.isEmpty()) {
|
||||||
ui->statusMessageLabel->hide();
|
ui->statusMessageLabel->hide();
|
||||||
|
ui->titleLabel->setAlignment ( Qt::AlignTop );
|
||||||
|
ui->statusLabel->setAlignment ( Qt::AlignTop );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ui->statusMessageLabel->show();
|
ui->statusMessageLabel->show();
|
||||||
status_text = RsHtml().formatText(NULL, status_string, RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
status_text = RsHtml().formatText(NULL, status_string, RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS);
|
||||||
ui->statusMessageLabel->setText(status_text);
|
ui->statusMessageLabel->setText(status_text);
|
||||||
|
ui->titleLabel->setAlignment ( Qt::AlignVCenter );
|
||||||
|
ui->statusLabel->setAlignment ( Qt::AlignVCenter );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>28</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
|
@ -574,8 +574,8 @@ border-image: url(:/images/closepressed.png)
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>22</width>
|
<width>24</width>
|
||||||
<height>22</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="popupMode">
|
<property name="popupMode">
|
||||||
|
@ -673,8 +673,8 @@ border-image: url(:/images/closepressed.png)
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>22</width>
|
<width>24</width>
|
||||||
<height>22</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="popupMode">
|
<property name="popupMode">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue