mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-27 00:11:33 +08:00
4d2de7bb2a
* FIX: Update python bindings for 3.4.2.
* FIX: Try to fix windows build.
* FIX: Add const at nativeEvent argument.
* FIX: Adjusting sip bindings for changes from 8b6df4aaa5
.
43 lines
903 B
Plaintext
43 lines
903 B
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CFloatingDragPreview : QWidget, ads::IFloatingWidget
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include <FloatingDragPreview.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void paintEvent(QPaintEvent *e);
|
|
CFloatingDragPreview(QWidget* Content /TransferThis/, QWidget* parent /TransferThis/);
|
|
|
|
public:
|
|
CFloatingDragPreview(ads::CDockWidget* Content /TransferThis/ );
|
|
CFloatingDragPreview(ads::CDockAreaWidget* Content /TransferThis/ );
|
|
|
|
virtual ~CFloatingDragPreview();
|
|
|
|
virtual bool eventFilter(QObject* watched, QEvent* event);
|
|
|
|
public: // implements IFloatingWidget
|
|
virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
|
|
ads::eDragState DragState, QWidget* MouseEventHandler);
|
|
|
|
virtual void moveFloating();
|
|
|
|
virtual void finishDragging();
|
|
|
|
signals:
|
|
void draggingCanceled();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
%End
|