mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +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>
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CDockAreaTabBar : QScrollArea
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockAreaTabBar.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void wheelEvent(QWheelEvent* Event);
|
|
|
|
public:
|
|
CDockAreaTabBar(ads::CDockAreaWidget* parent /TransferThis/);
|
|
virtual ~CDockAreaTabBar();
|
|
void insertTab(int Index, ads::CDockWidgetTab* Tab /Transfer/);
|
|
void removeTab(ads::CDockWidgetTab* Tab) /TransferBack/;
|
|
int count() const;
|
|
int currentIndex() const;
|
|
ads::CDockWidgetTab* currentTab() const;
|
|
ads::CDockWidgetTab* tab(int Index) const;
|
|
virtual bool eventFilter(QObject *watched, QEvent *event);
|
|
bool isTabOpen(int Index) const;
|
|
virtual QSize minimumSizeHint() const;
|
|
virtual QSize sizeHint() const;
|
|
void elidedChanged(bool elided);
|
|
|
|
public slots:
|
|
void setCurrentIndex(int Index);
|
|
void closeTab(int Index);
|
|
|
|
signals:
|
|
void currentChanging(int Index);
|
|
void currentChanged(int Index);
|
|
void tabBarClicked(int index);
|
|
void tabCloseRequested(int index);
|
|
void tabClosed(int index);
|
|
void tabOpened(int index);
|
|
void tabMoved(int from, int to);
|
|
void removingTab(int index);
|
|
void tabInserted(int index);
|
|
};
|
|
|
|
};
|
|
|
|
%End
|