mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 16:01:36 +08:00
db16c5f1b5
* start adaption of PyQt5 bindings to Qt-ADS 4.0 * Update PyQt bindings * Fix Python bindings build on Linux --------- Co-authored-by: Mira Weller <mweller@seemoo.tu-darmstadt.de>
42 lines
944 B
Plaintext
42 lines
944 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();
|
|
void cleanupAutoHideContainerWidget();
|
|
|
|
signals:
|
|
void draggingCanceled();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
%End
|