Add image handling to PulseAddDialog and PulseMessage

This commit is contained in:
drbob 2020-05-18 17:35:08 +10:00
parent 3312faf3ea
commit fbf56fcf03
5 changed files with 319 additions and 15 deletions

View file

@ -25,6 +25,14 @@
#include <retroshare/rswire.h>
QT_BEGIN_NAMESPACE
class QDragEnterEvent;
class QDropEvent;
class QMouseEvent;
QT_END_NAMESPACE
class PulseAddDialog : public QWidget
{
Q_OBJECT
@ -56,6 +64,12 @@ private:
uint32_t toPulseSentiment(int index);
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dragLeaveEvent(QDragLeaveEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
void dropEvent(QDropEvent *event);
void addImage(const QString &path);
RsWireGroup mGroup; // replyWith.
@ -64,6 +78,12 @@ protected:
RsWirePulse mReplyToPulse;
uint32_t mReplyType;
// images
RsGxsImage mImage1;
RsGxsImage mImage2;
RsGxsImage mImage3;
RsGxsImage mImage4;
Ui::PulseAddDialog ui;
};