mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
48c4106b7f
* Update Python bindings * Add X11Extras to setup.py for Linux builds
41 lines
915 B
Plaintext
41 lines
915 B
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
%TypeHeaderCode
|
|
#include <linux/FloatingWidgetTitleBar.h>
|
|
%End
|
|
|
|
class CFloatingWidgetTitleBar : QWidget
|
|
{
|
|
|
|
protected:
|
|
virtual void mousePressEvent(QMouseEvent *ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent *ev);
|
|
virtual void mouseMoveEvent(QMouseEvent *ev);
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
|
|
|
void setMaximizeIcon(const QIcon& Icon);
|
|
QIcon maximizeIcon() const;
|
|
void setNormalIcon(const QIcon& Icon);
|
|
QIcon normalIcon() const;
|
|
|
|
public:
|
|
explicit CFloatingWidgetTitleBar(CFloatingDockContainer *parent /TransferThis/ = 0);
|
|
virtual ~CFloatingWidgetTitleBar();
|
|
void enableCloseButton(bool Enable);
|
|
void setTitle(const QString &Text);
|
|
void updateStyle();
|
|
void setMaximizedIcon(bool maximized);
|
|
|
|
signals:
|
|
void closeRequested();
|
|
void maximizeRequested();
|
|
};
|
|
|
|
};
|
|
|
|
%End
|