2019-10-09 20:15:53 +08:00
|
|
|
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
2020-02-25 14:22:51 +08:00
|
|
|
#include <linux/FloatingWidgetTitleBar.h>
|
2019-10-09 20:15:53 +08:00
|
|
|
%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
|