mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
c90fb9413c
* (Python) WIP: attempt to update to 3.2.0 * (Python) MAINT: move demo.py to demo/ to avoid PyQtAds import issue * (Python) STY: remove trailing whitespace * (Python) Missing/incorrect /Transfer/ annotations * (Python) n-elie's fix for setup.py moc generation * (Python) FIX: Q_OS_LINUX is not defined by default with moc * (Python) FIX: split FloatingDockContainer.sip to be platform-specific %If (Platform) blocks around the class definition in FloatingDockContainer.sip did not seem to work. Co-authored-by: K Lauer <klauer@users.noreply.github.com>
44 lines
947 B
Plaintext
44 lines
947 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 moveEvent(QMoveEvent *event);
|
|
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
|