* Added to change dynamicly the share key info description.

* Added default stylesheet for the info label. 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7673 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-11-11 20:12:53 +00:00
parent db4b87cd01
commit fcb7b6c340
3 changed files with 33 additions and 7 deletions

View File

@ -79,14 +79,14 @@ void GroupShareKey::setTyp()
ui->headerFrame->setHeaderImage(QPixmap(":/images/channels.png"));
ui->headerFrame->setHeaderText(tr("Share Channel"));
ui->sharekeyinfo_label->setText(tr("You can let your friends know about your Channel by sharing it with them. Select the Friends with which you want to Share your Channel."));
}
else if(mGrpType == FORUM_KEY_SHARE)
{
ui->headerFrame->setHeaderImage(QPixmap(":/images/konversation64.png"));
ui->headerFrame->setHeaderText(tr("Share Forum"));
ui->sharekeyinfo_label->setText(tr("You can let your friends know about your Forum by sharing it with them. Select the Friends with which you want to Share your Forum."));
}
else if (mGrpType == POSTED_KEY_SHARE)
@ -95,7 +95,8 @@ void GroupShareKey::setTyp()
return;
ui->headerFrame->setHeaderImage(QPixmap(":/images/posted_64.png"));
ui->headerFrame->setHeaderText(tr("Share Posted"));
ui->headerFrame->setHeaderText(tr("Share Posted"));
ui->sharekeyinfo_label->setText(tr("You can let your friends know about your Posted by sharing it with them. Select the Friends with which you want to Share your Posted."));
}
else

View File

@ -6,12 +6,12 @@
<rect>
<x>0</x>
<y>0</y>
<width>472</width>
<width>526</width>
<height>347</height>
</rect>
</property>
<property name="windowTitle">
<string>Share Channel</string>
<string>Share</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
@ -134,9 +134,27 @@
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="sharekeyinfo_label">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="text">
<string>Select the Friends with which you want to Share your Channel.</string>
<string>You can let your friends know about your Channel by sharing it with them.
Select the Friends with which you want to Share your Channel.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>

View File

@ -563,3 +563,10 @@ PostedItem QLabel#notes {
border: 2px solid #CCCCCC;
border-radius: 10px
}
QLabel#sharekeyinfo_label{
border: 1px solid #DCDC41;
border-radius: 6px;
background: #FFFFD7;
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2);
}