2019-12-19 07:17:28 +08:00
|
|
|
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
|
|
|
|
class CFloatingDragPreview : QWidget, ads::IFloatingWidget
|
|
|
|
{
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <FloatingDragPreview.h>
|
|
|
|
%End
|
|
|
|
|
2020-02-22 05:47:09 +08:00
|
|
|
protected:
|
|
|
|
virtual void paintEvent(QPaintEvent *e);
|
|
|
|
CFloatingDragPreview(QWidget* Content /TransferThis/, QWidget* parent /TransferThis/);
|
2019-12-19 07:17:28 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
CFloatingDragPreview(ads::CDockWidget* Content /TransferThis/ );
|
|
|
|
CFloatingDragPreview(ads::CDockAreaWidget* Content /TransferThis/ );
|
|
|
|
|
|
|
|
virtual ~CFloatingDragPreview();
|
|
|
|
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event);
|
|
|
|
|
2020-02-22 05:47:09 +08:00
|
|
|
public: // implements IFloatingWidget
|
2019-12-19 07:17:28 +08:00
|
|
|
virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
|
|
|
|
ads::eDragState DragState, QWidget* MouseEventHandler);
|
|
|
|
virtual void moveFloating();
|
|
|
|
virtual void finishDragging();
|
2023-03-21 13:04:19 +08:00
|
|
|
void cleanupAutoHideContainerWidget();
|
2019-12-19 07:17:28 +08:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void draggingCanceled();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-02-22 05:47:09 +08:00
|
|
|
%End
|