mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 15:41:34 +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>
43 lines
924 B
Plaintext
43 lines
924 B
Plaintext
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class CDockAreaTitleBar : QFrame
|
|
{
|
|
%TypeHeaderCode
|
|
#include <DockAreaTitleBar.h>
|
|
%End
|
|
|
|
protected:
|
|
virtual void mousePressEvent(QMouseEvent* ev);
|
|
virtual void mouseReleaseEvent(QMouseEvent* ev);
|
|
virtual void mouseMoveEvent(QMouseEvent* ev);
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *event);
|
|
virtual void contextMenuEvent(QContextMenuEvent *event);
|
|
|
|
public slots:
|
|
void markTabsMenuOutdated();
|
|
|
|
|
|
public:
|
|
CDockAreaTitleBar(ads::CDockAreaWidget* parent /TransferThis/);
|
|
virtual ~CDockAreaTitleBar();
|
|
ads::CDockAreaTabBar* tabBar() const;
|
|
QAbstractButton* button(ads::TitleBarButton which) const;
|
|
void updateDockWidgetActionsButtons();
|
|
virtual void setVisible(bool Visible);
|
|
void insertWidget(int index, QWidget *widget /Transfer/ );
|
|
int indexOf(QWidget *widget) const;
|
|
|
|
|
|
signals:
|
|
void tabBarClicked(int index);
|
|
};
|
|
|
|
};
|
|
|
|
%End
|