Update PyQt bindings to 4.0.4 (#532)

This commit is contained in:
Nicolas Elie 2023-07-03 14:09:48 +02:00 committed by GitHub
parent 957afe3a07
commit 6e642ec423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 1 deletions

View File

@ -28,6 +28,8 @@ public:
Qt::Orientation orientation() const; Qt::Orientation orientation() const;
ads::CAutoHideTab* tabAt(int index) const; ads::CAutoHideTab* tabAt(int index) const;
int tabCount() const; int tabCount() const;
int visibleTabCount() const;
bool hasVisibleTabs() const;
ads::SideBarLocation sideBarLocation() const; ads::SideBarLocation sideBarLocation() const;
virtual QSize minimumSizeHint() const; virtual QSize minimumSizeHint() const;
virtual QSize sizeHint() const; virtual QSize sizeHint() const;

View File

@ -23,6 +23,7 @@ public:
ads::CDockWidget* focusedDockWidget() const; ads::CDockWidget* focusedDockWidget() const;
void setDockWidgetTabFocused(ads::CDockWidgetTab* Tab); void setDockWidgetTabFocused(ads::CDockWidgetTab* Tab);
void clearDockWidgetFocus(ads::CDockWidget* dockWidget); void clearDockWidgetFocus(ads::CDockWidget* dockWidget);
void setDockWidgetTabPressed(bool Value);
public slots: public slots:
void setDockWidgetFocused(ads::CDockWidget* focusedNow); void setDockWidgetFocused(ads::CDockWidget* focusedNow);

View File

@ -188,6 +188,7 @@ public:
AutoHideSideBarsIconOnly, AutoHideSideBarsIconOnly,
AutoHideShowOnMouseOver, AutoHideShowOnMouseOver,
DefaultAutoHideConfig, DefaultAutoHideConfig,
AutoHideCloseButtonCollapsesDock,
}; };
typedef QFlags<ads::CDockManager::eAutoHideFlag> AutoHideFlags; typedef QFlags<ads::CDockManager::eAutoHideFlag> AutoHideFlags;
@ -237,6 +238,7 @@ public:
QMenu* viewMenu() const; QMenu* viewMenu() const;
void setViewMenuInsertionOrder(ads::CDockManager::eViewMenuInsertionOrder Order); void setViewMenuInsertionOrder(ads::CDockManager::eViewMenuInsertionOrder Order);
bool isRestoringState() const; bool isRestoringState() const;
bool isLeavingMinimizedState() const;
static int startDragDistance(); static int startDragDistance();
ads::CDockWidget* focusedDockWidget() const; ads::CDockWidget* focusedDockWidget() const;
QList<int> splitterSizes(ads::CDockAreaWidget *ContainedArea) const; QList<int> splitterSizes(ads::CDockAreaWidget *ContainedArea) const;
@ -245,6 +247,7 @@ public:
static QString floatingContainersTitle(); static QString floatingContainersTitle();
public slots: public slots:
void endLeavingMinimizedState();
void openPerspective(const QString& PerspectiveName); void openPerspective(const QString& PerspectiveName);
void setDockWidgetFocused(ads::CDockWidget* DockWidget); void setDockWidgetFocused(ads::CDockWidget* DockWidget);

View File

@ -60,7 +60,9 @@ public:
enum eMinimumSizeHintMode enum eMinimumSizeHintMode
{ {
MinimumSizeHintFromDockWidget, MinimumSizeHintFromDockWidget,
MinimumSizeHintFromContent MinimumSizeHintFromContent,
MinimumSizeHintFromDockWidgetMinimumSize,
MinimumSizeHintFromContentMinimumSize,
}; };
enum eToggleViewActionMode enum eToggleViewActionMode
@ -94,6 +96,7 @@ public:
QAction* toggleViewAction() const; QAction* toggleViewAction() const;
void setToggleViewActionMode(ads::CDockWidget::eToggleViewActionMode Mode); void setToggleViewActionMode(ads::CDockWidget::eToggleViewActionMode Mode);
void setMinimumSizeHintMode(ads::CDockWidget::eMinimumSizeHintMode Mode); void setMinimumSizeHintMode(ads::CDockWidget::eMinimumSizeHintMode Mode);
ads::CDockWidget::eMinimumSizeHintMode minimumSizeHintMode() const;
bool isCentralWidget() const; bool isCentralWidget() const;
void setIcon(const QIcon& Icon); void setIcon(const QIcon& Icon);
QIcon icon() const; QIcon icon() const;

View File

@ -37,6 +37,7 @@ public:
void updateStyle(); void updateStyle();
QSize iconSize() const; QSize iconSize() const;
void setIconSize(const QSize& Size); void setIconSize(const QSize& Size);
bool mousePressed() const;
public slots: public slots:
virtual void setVisible(bool visible); virtual void setVisible(bool visible);