mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Fixed posted item serialisation (wrong way round)
cleaned up comments gui and added loading framework correctly initialisaed posted items git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5876 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4e63561473
commit
ebbe967402
14 changed files with 456 additions and 290 deletions
|
@ -34,10 +34,8 @@ class PostedItem;
|
|||
class PostedHolder
|
||||
{
|
||||
public:
|
||||
virtual void deletePostedItem(PostedItem *, uint32_t ptype) = 0;
|
||||
virtual void notifySelection(PostedItem *item, int ptype) = 0;
|
||||
|
||||
virtual void requestComments(std::string threadId) = 0;
|
||||
virtual void showComments(const RsGxsMessageId& threadId) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -48,15 +46,7 @@ class PostedItem : public QWidget, private Ui::PostedItem
|
|||
public:
|
||||
PostedItem(PostedHolder *parent, const RsPostedPost &item);
|
||||
|
||||
//void setDummyText();
|
||||
//void updateParent(PhotoHolder *parent); // for external construction.
|
||||
//void removeItem();
|
||||
|
||||
//void setSelected(bool on);
|
||||
//bool isSelected();
|
||||
|
||||
protected:
|
||||
//void mousePressEvent(QMouseEvent *event);
|
||||
RsPostedPost getPost() const;
|
||||
|
||||
private slots:
|
||||
void loadComments();
|
||||
|
@ -66,7 +56,8 @@ private:
|
|||
bool mSelected;
|
||||
|
||||
std::string mThreadId;
|
||||
PostedHolder *mParent;
|
||||
PostedHolder *mPostHolder;
|
||||
RsPostedPost mPost;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue