mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Set to display a placeholder text when status message is empty.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
78c71ab011
commit
3157bdff91
@ -805,7 +805,16 @@ void FriendsDialog::getAvatar()
|
||||
/** Loads own personal status */
|
||||
void FriendsDialog::loadmypersonalstatus()
|
||||
{
|
||||
ui.mypersonalstatusLabel->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
|
||||
QString statustring = QString::fromUtf8(rsMsgs->getCustomStateString().c_str());
|
||||
|
||||
if (statustring.isEmpty())
|
||||
{
|
||||
ui.mypersonalstatusLabel->setText(tr("Set here your Status message"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.mypersonalstatusLabel->setText(statustring);
|
||||
}
|
||||
}
|
||||
|
||||
void FriendsDialog::statusmessage()
|
||||
|
@ -11,16 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
@ -161,6 +152,12 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Edit status message</string>
|
||||
</property>
|
||||
@ -241,7 +238,7 @@
|
||||
<enum>QFrame::Sunken</enum>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="margin">
|
||||
<property name="margin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user