mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-17 10:59:38 -04:00
Merge pull request #2205 from defnax/photoshare-fixes
photoshare compile fixes
This commit is contained in:
commit
c184e7b7ba
5 changed files with 8 additions and 1 deletions
|
@ -22,7 +22,9 @@
|
||||||
|
|
||||||
#include "AlbumDialog.h"
|
#include "AlbumDialog.h"
|
||||||
#include "gui/gxs/GxsIdDetails.h"
|
#include "gui/gxs/GxsIdDetails.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
#include "ui_AlbumDialog.h"
|
#include "ui_AlbumDialog.h"
|
||||||
|
|
||||||
#include "retroshare/rsgxsflags.h"
|
#include "retroshare/rsgxsflags.h"
|
||||||
|
|
||||||
AlbumDialog::AlbumDialog(const RsPhotoAlbum& album, TokenQueue* photoQueue, RsPhoto* rs_Photo, QWidget *parent) :
|
AlbumDialog::AlbumDialog(const RsPhotoAlbum& album, TokenQueue* photoQueue, RsPhoto* rs_Photo, QWidget *parent) :
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include "AlbumGroupDialog.h"
|
#include "AlbumGroupDialog.h"
|
||||||
#include "AlbumExtra.h"
|
#include "AlbumExtra.h"
|
||||||
#include "gui/gxs/GxsIdDetails.h"
|
#include "gui/gxs/GxsIdDetails.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include "AlbumItem.h"
|
#include "AlbumItem.h"
|
||||||
#include "ui_AlbumItem.h"
|
#include "ui_AlbumItem.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
|
|
|
@ -96,9 +96,10 @@ void PhotoDialog::toggleComments()
|
||||||
if (mCommentsCreated) {
|
if (mCommentsCreated) {
|
||||||
ui->frame_comments->setVisible(true);
|
ui->frame_comments->setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
|
RsGxsId current_author;
|
||||||
// create CommentDialog.
|
// create CommentDialog.
|
||||||
RsGxsCommentService *commentService = dynamic_cast<RsGxsCommentService *>(mRsPhoto);
|
RsGxsCommentService *commentService = dynamic_cast<RsGxsCommentService *>(mRsPhoto);
|
||||||
GxsCommentDialog *commentDialog = new GxsCommentDialog(this, mRsPhoto->getTokenService(), commentService);
|
GxsCommentDialog *commentDialog = new GxsCommentDialog(this,current_author, mRsPhoto->getTokenService(), commentService);
|
||||||
|
|
||||||
// TODO: Need to fetch all msg versions, otherwise - won't get all the comments.
|
// TODO: Need to fetch all msg versions, otherwise - won't get all the comments.
|
||||||
// For the moment - use current msgid.
|
// For the moment - use current msgid.
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#include "PhotoItem.h"
|
#include "PhotoItem.h"
|
||||||
#include "ui_PhotoItem.h"
|
#include "ui_PhotoItem.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
|
|
||||||
PhotoItem::PhotoItem(PhotoShareItemHolder *holder, const RsPhotoPhoto &photo, QWidget *parent):
|
PhotoItem::PhotoItem(PhotoShareItemHolder *holder, const RsPhotoPhoto &photo, QWidget *parent):
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue