mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-14 17:15:47 -04:00
Add image handling to PulseAddDialog and PulseMessage
This commit is contained in:
parent
3312faf3ea
commit
fbf56fcf03
5 changed files with 319 additions and 15 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue