mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Update Python bindings (#289)
* Update Python bindings * Add X11Extras to setup.py for Linux builds * Update Python Bindings * Update Python bindings
This commit is contained in:
parent
97215705f5
commit
f835ffd978
@ -359,6 +359,7 @@ class MainWindow(MainWindowUI, MainWindowBase):
|
|||||||
floating = sender.property("Floating")
|
floating = sender.property("Floating")
|
||||||
dock_widget = self.create_editor_widget()
|
dock_widget = self.create_editor_widget()
|
||||||
dock_widget.setFeature(QtAds.CDockWidget.DockWidgetDeleteOnClose, True)
|
dock_widget.setFeature(QtAds.CDockWidget.DockWidgetDeleteOnClose, True)
|
||||||
|
dock_widget.setFeature(QtAds.CDockWidget.DockWidgetForceCloseWithArea, True)
|
||||||
dock_widget.closeRequested.connect(self.on_editor_close_requested)
|
dock_widget.closeRequested.connect(self.on_editor_close_requested)
|
||||||
|
|
||||||
if floating:
|
if floating:
|
||||||
|
@ -106,6 +106,11 @@ class MainWindow(MainWindowUI, MainWindowBase):
|
|||||||
self.perspective_combobox.clear()
|
self.perspective_combobox.clear()
|
||||||
self.perspective_combobox.addItems(self.dock_manager.perspectiveNames())
|
self.perspective_combobox.addItems(self.dock_manager.perspectiveNames())
|
||||||
self.perspective_combobox.setCurrentText(perspective_name)
|
self.perspective_combobox.setCurrentText(perspective_name)
|
||||||
|
|
||||||
|
def closeEvent(self, event: QCloseEvent):
|
||||||
|
self.dock_manager.deleteLater()
|
||||||
|
super().closeEvent(event)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
|
@ -135,7 +135,6 @@ protected:
|
|||||||
ads::CDockOverlay* dockAreaOverlay() const;
|
ads::CDockOverlay* dockAreaOverlay() const;
|
||||||
void notifyWidgetOrAreaRelocation(QWidget* RelocatedWidget);
|
void notifyWidgetOrAreaRelocation(QWidget* RelocatedWidget);
|
||||||
void notifyFloatingWidgetDrop(ads::CFloatingDockContainer* FloatingWidget);
|
void notifyFloatingWidgetDrop(ads::CFloatingDockContainer* FloatingWidget);
|
||||||
ads::CDockWidget* focusedDockWidget() const;
|
|
||||||
|
|
||||||
virtual void showEvent(QShowEvent *event);
|
virtual void showEvent(QShowEvent *event);
|
||||||
|
|
||||||
@ -217,6 +216,9 @@ public:
|
|||||||
void setViewMenuInsertionOrder(ads::CDockManager::eViewMenuInsertionOrder Order);
|
void setViewMenuInsertionOrder(ads::CDockManager::eViewMenuInsertionOrder Order);
|
||||||
bool isRestoringState() const;
|
bool isRestoringState() const;
|
||||||
static int startDragDistance();
|
static int startDragDistance();
|
||||||
|
ads::CDockWidget* focusedDockWidget() const;
|
||||||
|
QList<int> splitterSizes(ads::CDockAreaWidget *ContainedArea) const;
|
||||||
|
void setSplitterSizes(ads::CDockAreaWidget *ContainedArea, const QList<int>& sizes);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void openPerspective(const QString& PerspectiveName);
|
void openPerspective(const QString& PerspectiveName);
|
||||||
|
@ -35,6 +35,8 @@ public:
|
|||||||
virtual bool event(QEvent *e);
|
virtual bool event(QEvent *e);
|
||||||
void setElideMode(Qt::TextElideMode mode);
|
void setElideMode(Qt::TextElideMode mode);
|
||||||
void updateStyle();
|
void updateStyle();
|
||||||
|
QSize iconSize() const;
|
||||||
|
void setIconSize(const QSize& Size);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void setVisible(bool visible);
|
virtual void setVisible(bool visible);
|
||||||
|
Loading…
Reference in New Issue
Block a user