diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp
index f1fe30cfa..4a38c2a5a 100644
--- a/retroshare-gui/src/gui/Posted/PostedItem.cpp
+++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp
@@ -91,6 +91,7 @@ void PostedItem::setup()
ui->newCommentLabel->hide();
ui->frame_picture->hide();
ui->commLabel->hide();
+ ui->frame_notes->hide();
/* general ones */
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(removeItem()));
@@ -102,6 +103,7 @@ void PostedItem::setup()
connect(ui->voteUpButton, SIGNAL(clicked()), this, SLOT(makeUpVote()));
connect(ui->voteDownButton, SIGNAL(clicked()), this, SLOT( makeDownVote()));
connect(ui->expandButton, SIGNAL(clicked()), this, SLOT( toggle()));
+ connect(ui->notesButton, SIGNAL(clicked()), this, SLOT( toggleNotes()));
connect(ui->readButton, SIGNAL(toggled(bool)), this, SLOT(readToggled(bool)));
@@ -310,7 +312,7 @@ void PostedItem::fill()
// FIX THIS UP LATER.
ui->notes->setText(QString::fromUtf8(mPost.mNotes.c_str()));
if(ui->notes->text().isEmpty())
- ui->frame_notes->hide();
+ ui->notesButton->hide();
// differences between Feed or Top of Comment.
if (mFeedHolder)
{
@@ -528,3 +530,16 @@ void PostedItem::copyMessageLink()
RSLinkClipboard::copyLinks(urls);
}
}
+
+void PostedItem::toggleNotes()
+{
+ if (ui->notesButton->isChecked())
+ {
+ ui->frame_notes->show();
+ }
+ else
+ {
+ ui->frame_notes->hide();
+ }
+
+}
diff --git a/retroshare-gui/src/gui/Posted/PostedItem.h b/retroshare-gui/src/gui/Posted/PostedItem.h
index 1ef11de3c..333018dee 100644
--- a/retroshare-gui/src/gui/Posted/PostedItem.h
+++ b/retroshare-gui/src/gui/Posted/PostedItem.h
@@ -61,6 +61,7 @@ private slots:
void readAndClearItem();
void toggle();
void copyMessageLink();
+ void toggleNotes();
signals:
void vote(const RsGxsGrpMsgIdPair& msgId, bool up);
diff --git a/retroshare-gui/src/gui/Posted/PostedItem.ui b/retroshare-gui/src/gui/Posted/PostedItem.ui
index 389f659c8..af284a7a0 100644
--- a/retroshare-gui/src/gui/Posted/PostedItem.ui
+++ b/retroshare-gui/src/gui/Posted/PostedItem.ui
@@ -513,6 +513,26 @@
+ -
+
+
+ Notes
+
+
+
+ :/images/notes.png:/images/notes.png
+
+
+ true
+
+
+ Qt::ToolButtonTextBesideIcon
+
+
+ true
+
+
+
-
@@ -630,23 +650,23 @@
-
- QFrame::NoFrame
+ QFrame::Box
QFrame::Sunken
- 1
+ 3
- 1
+ 3
- 1
+ 3
- 1
+ 3
1
diff --git a/retroshare-gui/src/gui/Posted/Posted_images.qrc b/retroshare-gui/src/gui/Posted/Posted_images.qrc
index 0ea4455cf..0b9e06f2b 100644
--- a/retroshare-gui/src/gui/Posted/Posted_images.qrc
+++ b/retroshare-gui/src/gui/Posted/Posted_images.qrc
@@ -18,5 +18,6 @@
images/comments.png
images/thumb-default.png
images/share.png
+ images/notes.png
diff --git a/retroshare-gui/src/gui/Posted/images/notes.png b/retroshare-gui/src/gui/Posted/images/notes.png
new file mode 100644
index 000000000..a73a03968
Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/notes.png differ