mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Hide the Subscribe Button on the Channel Post & Forum MSG Feeds
* Hide the Subscribe Button on the Channel Post & Forum MSG Feeds * Fixed to enabled the RS Links for Channel Names back.
This commit is contained in:
parent
efe454c937
commit
edf83f0eb3
4 changed files with 48 additions and 21 deletions
|
@ -209,6 +209,9 @@ void GxsChannelPostItem::setup()
|
||||||
|
|
||||||
ui->scoreLabel->hide();
|
ui->scoreLabel->hide();
|
||||||
|
|
||||||
|
// hide unsubscribe button not necessary
|
||||||
|
ui->unsubscribeButton->hide();
|
||||||
|
|
||||||
ui->downloadButton->hide();
|
ui->downloadButton->hide();
|
||||||
ui->playButton->hide();
|
ui->playButton->hide();
|
||||||
//ui->warn_image_label->hide();
|
//ui->warn_image_label->hide();
|
||||||
|
@ -426,7 +429,7 @@ void GxsChannelPostItem::fill()
|
||||||
mInFill = true;
|
mInFill = true;
|
||||||
|
|
||||||
QString title;
|
QString title;
|
||||||
|
QString msgText;
|
||||||
//float f = QFontMetricsF(font()).height()/14.0 ;
|
//float f = QFontMetricsF(font()).height()/14.0 ;
|
||||||
|
|
||||||
if(mPost.mThumbnail.mData != NULL)
|
if(mPost.mThumbnail.mData != NULL)
|
||||||
|
@ -465,8 +468,10 @@ void GxsChannelPostItem::fill()
|
||||||
title += link.toHtml();
|
title += link.toHtml();
|
||||||
ui->titleLabel->setText(title);
|
ui->titleLabel->setText(title);
|
||||||
|
|
||||||
|
msgText = tr("Post") + ": ";
|
||||||
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
|
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
|
||||||
ui->subjectLabel->setText(msgLink.toHtml());
|
msgText += msgLink.toHtml();
|
||||||
|
ui->subjectLabel->setText(msgText);
|
||||||
|
|
||||||
if (IS_GROUP_SUBSCRIBED(mGroupMeta.mSubscribeFlags) || IS_GROUP_ADMIN(mGroupMeta.mSubscribeFlags))
|
if (IS_GROUP_SUBSCRIBED(mGroupMeta.mSubscribeFlags) || IS_GROUP_ADMIN(mGroupMeta.mSubscribeFlags))
|
||||||
{
|
{
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="tilteHLayout">
|
<layout class="QHBoxLayout" name="tilteHLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="StyledElidedLabel" name="titleLabel">
|
<widget class="QLabel" name="titleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -124,16 +124,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="subjectLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">TextLabel</string>
|
|
||||||
</property>
|
|
||||||
<property name="openExternalLinks">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -147,6 +137,16 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="subjectLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="newCommHLayout">
|
<layout class="QHBoxLayout" name="newCommHLayout">
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
|
@ -469,11 +469,6 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
|
||||||
<class>StyledElidedLabel</class>
|
|
||||||
<extends>QLabel</extends>
|
|
||||||
<header>gui/common/StyledElidedLabel.h</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>ElidedLabel</class>
|
<class>ElidedLabel</class>
|
||||||
<extends>QLabel</extends>
|
<extends>QLabel</extends>
|
||||||
|
|
|
@ -118,6 +118,9 @@ void GxsForumMsgItem::setup()
|
||||||
|
|
||||||
ui->subjectLabel->setMinimumWidth(20);
|
ui->subjectLabel->setMinimumWidth(20);
|
||||||
|
|
||||||
|
// hide unsubscribe button not necessary
|
||||||
|
ui->unsubscribeButton->hide();
|
||||||
|
|
||||||
ui->expandFrame->hide();
|
ui->expandFrame->hide();
|
||||||
ui->parentFrame->hide();
|
ui->parentFrame->hide();
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,6 +187,24 @@ ShareManager QPushButton#addButton:hover {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SearchDialog QPushButton#pushButtonSearch {
|
||||||
|
font: bold;
|
||||||
|
font-size: 15px;
|
||||||
|
color: white;
|
||||||
|
background: #32CD32;
|
||||||
|
border-radius: 4px;
|
||||||
|
max-height: 25px;
|
||||||
|
min-width: 4em;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
SearchDialog QPushButton#pushButtonSearch:hover{
|
||||||
|
background: #5AD75A;
|
||||||
|
border-radius: 4px;
|
||||||
|
min-width: 4em;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
CreateGxsForumMsg QPushButton#postButton:disabled, PostedCreatePostDialog QPushButton#submitButton:disabled,
|
CreateGxsForumMsg QPushButton#postButton:disabled, PostedCreatePostDialog QPushButton#submitButton:disabled,
|
||||||
CreateGxsChannelMsg QPushButton#postButton:disabled, GxsCreateCommentDialog QPushButton#postButton:disabled {
|
CreateGxsChannelMsg QPushButton#postButton:disabled, GxsCreateCommentDialog QPushButton#postButton:disabled {
|
||||||
font: bold;
|
font: bold;
|
||||||
|
@ -448,6 +466,12 @@ GxsChannelPostItem QLabel#newLabel {
|
||||||
border: 1px solid #167BE7;
|
border: 1px solid #167BE7;
|
||||||
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2291E0, stop: 1 #3EB3FF);
|
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2291E0, stop: 1 #3EB3FF);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostItem QLabel#subjectLabel, GxsChannelPostItem QLabel#titleLabel {
|
||||||
|
font: 11pt;
|
||||||
|
font: bold italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostItem QLabel#logoLabel {
|
GxsChannelPostItem QLabel#logoLabel {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue