Updates drag mime data to include a variable determining which streams are enabled and which ones aren't (a binary qint64 where the 0s are disabled and the 1s are enabled) rather than relying solely on the stream->enabled values which can't be modified as part of the drag process.
21 lines
301 B
C++
21 lines
301 B
C++
#ifndef DRAGBUTTON_H
|
|
#define DRAGBUTTON_H
|
|
|
|
#include <QPushButton>
|
|
|
|
class DragButton : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DragButton(QWidget* parent = nullptr);
|
|
|
|
signals:
|
|
void MousePressed();
|
|
|
|
protected:
|
|
virtual void mousePressEvent(QMouseEvent* event) override;
|
|
|
|
};
|
|
|
|
#endif // DRAGBUTTON_H
|