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:
defnax 2014-12-15 15:53:10 +00:00
parent 78c71ab011
commit 3157bdff91
2 changed files with 18 additions and 12 deletions

View File

@ -805,7 +805,16 @@ void FriendsDialog::getAvatar()
/** Loads own personal status */ /** Loads own personal status */
void FriendsDialog::loadmypersonalstatus() 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() void FriendsDialog::statusmessage()

View File

@ -11,16 +11,7 @@
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin"> <property name="margin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
@ -161,6 +152,12 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip"> <property name="toolTip">
<string>Edit status message</string> <string>Edit status message</string>
</property> </property>