mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CAutoHideTab : CPushButton
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
#include <AutoHideTab.h>
|
|
%End
|
|
|
|
protected:
|
|
void setSideBar(ads::CAutoHideSideBar *SideTabBar);
|
|
void removeFromSideBar();
|
|
virtual bool event(QEvent* event);
|
|
virtual void contextMenuEvent(QContextMenuEvent* ev);
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
|
|
|
public:
|
|
CAutoHideTab(QWidget* parent /TransferThis/ = 0);
|
|
virtual ~CAutoHideTab();
|
|
void updateStyle();
|
|
ads::SideBarLocation sideBarLocation() const;
|
|
void setOrientation(Qt::Orientation Orientation);
|
|
Qt::Orientation orientation() const;
|
|
bool isActiveTab() const;
|
|
ads::CDockWidget* dockWidget() const;
|
|
void setDockWidget(ads::CDockWidget* DockWidget);
|
|
bool iconOnly() const;
|
|
ads::CAutoHideSideBar* sideBar() const;
|
|
int tabIndex() const;
|
|
void setDockWidgetFloating();
|
|
void unpinDockWidget();
|
|
void requestCloseDockWidget();
|
|
};
|
|
|
|
};
|
|
|
|
%End
|