mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-16 05:35:43 +08:00
32 lines
597 B
Plaintext
32 lines
597 B
Plaintext
|
%Import QtWidgets/QtWidgetsmod.sip
|
||
|
|
||
|
%If (Qt_5_0_0 -)
|
||
|
|
||
|
namespace ads
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <FloatingWidgetTitleBar.h>
|
||
|
%End
|
||
|
|
||
|
class CFloatingWidgetTitleBar : QWidget
|
||
|
{
|
||
|
|
||
|
protected:
|
||
|
virtual void mousePressEvent(QMouseEvent *ev);
|
||
|
virtual void mouseReleaseEvent(QMouseEvent *ev);
|
||
|
virtual void mouseMoveEvent(QMouseEvent *ev);
|
||
|
|
||
|
public:
|
||
|
explicit CFloatingWidgetTitleBar(CFloatingDockContainer *parent /TransferThis/ = 0);
|
||
|
virtual ~CFloatingWidgetTitleBar();
|
||
|
void enableCloseButton(bool Enable);
|
||
|
void setTitle(const QString &Text);
|
||
|
|
||
|
signals:
|
||
|
void closeRequested();
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
%End
|