mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 04:44:25 -04:00
Enabled back Subscribe button on Channels
*Enabled back Subscribe Button on Channels *Set stylesheet for the Channel subscribe button too. *Fixed spacing on PostedListwidget
This commit is contained in:
parent
6c0c42c8ad
commit
0f9ee609e2
4 changed files with 55 additions and 14 deletions
|
@ -14,6 +14,9 @@
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -82,6 +85,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="submitPostButton">
|
<widget class="QToolButton" name="submitPostButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Create Post</string>
|
<string>Create Post</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -124,8 +133,8 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>27</width>
|
<width>24</width>
|
||||||
<height>27</height>
|
<height>24</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -256,6 +256,8 @@ void GxsChannelPostsWidget::insertChannelDetails(const RsGxsChannelGroup &group)
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->subscribeToolButton->setSubscribed(IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags));
|
ui->subscribeToolButton->setSubscribed(IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags));
|
||||||
|
mStateHelper->setWidgetEnabled(ui->subscribeToolButton, true);
|
||||||
|
|
||||||
|
|
||||||
bool autoDownload ;
|
bool autoDownload ;
|
||||||
rsGxsChannels->getChannelAutoDownload(group.mMeta.mGroupId,autoDownload);
|
rsGxsChannels->getChannelAutoDownload(group.mMeta.mGroupId,autoDownload);
|
||||||
|
|
|
@ -121,16 +121,15 @@
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">Subscribe</string>
|
<string notr="true">Subscribe</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../images.qrc">
|
|
||||||
<normaloff>:/images/RSS_004_32.png</normaloff>:/images/RSS_004_32.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>16</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="popupMode">
|
||||||
|
<enum>QToolButton::MenuButtonPopup</enum>
|
||||||
|
</property>
|
||||||
<property name="toolButtonStyle">
|
<property name="toolButtonStyle">
|
||||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -668,14 +668,6 @@ IdDialog QFrame#inviteFrame {
|
||||||
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2);
|
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2);
|
||||||
}
|
}
|
||||||
|
|
||||||
GxsChannelPostsWidget QFrame#infoFrame
|
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
IdEditDialog QLabel#info_label
|
IdEditDialog QLabel#info_label
|
||||||
{
|
{
|
||||||
border: 1px solid #DCDC41;
|
border: 1px solid #DCDC41;
|
||||||
|
@ -840,3 +832,42 @@ GxsForumThreadWidget QToolButton#subscribeToolButton:hover {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QFrame#infoFrame
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton {
|
||||||
|
font: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
color: white;
|
||||||
|
background: #0099cc;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton:hover {
|
||||||
|
background: #03b1f3;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton:pressed {
|
||||||
|
background: #03b1f3;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* only for MenuButtonPopup */
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton[popupMode="1"] {
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-arrow {
|
||||||
|
image: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
GxsChannelPostsWidget QToolButton#subscribeToolButton::menu-button {
|
||||||
|
image: none;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue