mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-09 03:18:41 -05:00
fixed the "new" property so that the style can act on it
This commit is contained in:
parent
6d8f5512f9
commit
780ffe3504
@ -117,6 +117,10 @@ void BoardPostDisplayWidgetBase::setReadStatus(bool isNew, bool isUnread)
|
|||||||
readButton()->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/message-state-read.png"));
|
readButton()->setIcon(FilesDefs::getIconFromQtResourcePath(":/images/message-state-read.png"));
|
||||||
|
|
||||||
newLabel()->setVisible(isNew);
|
newLabel()->setVisible(isNew);
|
||||||
|
|
||||||
|
mainFrame()->setProperty("new", isNew);
|
||||||
|
mainFrame()->style()->unpolish(mainFrame());
|
||||||
|
mainFrame()->style()->polish(mainFrame());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BoardPostDisplayWidget_compact::doExpand(bool e)
|
void BoardPostDisplayWidget_compact::doExpand(bool e)
|
||||||
@ -439,6 +443,7 @@ QLabel *BoardPostDisplayWidget_compact::scoreLabel() { return ui->sc
|
|||||||
QLabel *BoardPostDisplayWidget_compact::notes() { return ui->notes; }
|
QLabel *BoardPostDisplayWidget_compact::notes() { return ui->notes; }
|
||||||
QPushButton *BoardPostDisplayWidget_compact::shareButton() { return ui->shareButton; }
|
QPushButton *BoardPostDisplayWidget_compact::shareButton() { return ui->shareButton; }
|
||||||
QLabel *BoardPostDisplayWidget_compact::pictureLabel() { return ui->pictureLabel; }
|
QLabel *BoardPostDisplayWidget_compact::pictureLabel() { return ui->pictureLabel; }
|
||||||
|
QFrame *BoardPostDisplayWidget_compact::mainFrame() { return ui->mainFrame; }
|
||||||
|
|
||||||
//===================================================================================================================================
|
//===================================================================================================================================
|
||||||
//== class BoardPostDisplayWidget_card ==
|
//== class BoardPostDisplayWidget_card ==
|
||||||
@ -508,4 +513,5 @@ QLabel *BoardPostDisplayWidget_card::scoreLabel() { return ui->score
|
|||||||
QLabel *BoardPostDisplayWidget_card::notes() { return ui->notes; }
|
QLabel *BoardPostDisplayWidget_card::notes() { return ui->notes; }
|
||||||
QPushButton *BoardPostDisplayWidget_card::shareButton() { return ui->shareButton; }
|
QPushButton *BoardPostDisplayWidget_card::shareButton() { return ui->shareButton; }
|
||||||
QLabel *BoardPostDisplayWidget_card::pictureLabel() { return ui->pictureLabel; }
|
QLabel *BoardPostDisplayWidget_card::pictureLabel() { return ui->pictureLabel; }
|
||||||
|
QFrame *BoardPostDisplayWidget_card::mainFrame() { return ui->mainFrame; }
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ class BoardPostDisplayWidget_compact;
|
|||||||
}
|
}
|
||||||
|
|
||||||
class QPushButton;
|
class QPushButton;
|
||||||
|
class QFrame;
|
||||||
class QLabel;
|
class QLabel;
|
||||||
class QToolButton;
|
class QToolButton;
|
||||||
class QTextEdit;
|
class QTextEdit;
|
||||||
@ -79,6 +80,7 @@ protected slots:
|
|||||||
virtual QLabel *pictureLabel()=0;
|
virtual QLabel *pictureLabel()=0;
|
||||||
virtual QToolButton *readButton() =0;
|
virtual QToolButton *readButton() =0;
|
||||||
virtual QPushButton *shareButton() =0;
|
virtual QPushButton *shareButton() =0;
|
||||||
|
virtual QFrame *mainFrame() =0;
|
||||||
|
|
||||||
void loadComments(bool e);
|
void loadComments(bool e);
|
||||||
void showAuthorInPeople();
|
void showAuthorInPeople();
|
||||||
@ -125,6 +127,7 @@ public:
|
|||||||
QLabel *pictureLabel() override;
|
QLabel *pictureLabel() override;
|
||||||
QToolButton *readButton() override;
|
QToolButton *readButton() override;
|
||||||
QPushButton *shareButton() override;
|
QPushButton *shareButton() override;
|
||||||
|
QFrame *mainFrame() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void viewPicture() ;
|
void viewPicture() ;
|
||||||
@ -164,6 +167,7 @@ public:
|
|||||||
QToolButton *readButton() override;
|
QToolButton *readButton() override;
|
||||||
QPushButton *shareButton() override;
|
QPushButton *shareButton() override;
|
||||||
QLabel *pictureLabel() override;
|
QLabel *pictureLabel() override;
|
||||||
|
QFrame *mainFrame() override;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
/* GxsGroupFeedItem */
|
/* GxsGroupFeedItem */
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="mainFrame">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="mainFrame">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user