ADS: Integrate newest base repository commits

* Update to newest version of ADS
* Remove native window and title bar support on linux

Base repository was merged until commit
8d4507e9d83434be976ff8c7bc9f59733937a08d

Task-number: QDS-10242
Change-Id: If74b6b50421be3b759c61b0f76f4a330991f71fa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Henning Gruendl
2023-06-23 19:58:25 +02:00
committed by Henning Gründl
parent 21983a8377
commit 16ef838f23
47 changed files with 10507 additions and 5668 deletions

View File

@@ -35,24 +35,27 @@ private:
bool m_focus;
};
/**
* A dock widget tab that shows a title and an icon.
* The dock widget tab is shown in the dock area title bar to switch between
* tabbed dock widgets
* The dock widget tab is shown in the dock area title bar to switch between tabbed dock widgets.
*/
class ADS_EXPORT DockWidgetTab : public QFrame
{
Q_OBJECT
Q_PROPERTY(bool activeTab READ isActiveTab WRITE setActiveTab NOTIFY activeTabChanged)
Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize NOTIFY iconSizeChanged)
private:
DockWidgetTabPrivate *d; ///< private data (pimpl)
friend class DockWidgetTabPrivate;
friend class DockWidget;
friend class DockManager;
friend class AutoHideDockContainer;
void onDockWidgetFeaturesChanged();
void detachDockWidget();
void autoHideDockWidget();
void onAutoHideToActionClicked();
protected:
void mousePressEvent(QMouseEvent *event) override;
@@ -95,8 +98,7 @@ public:
DockWidget *dockWidget() const;
/**
* Sets the dock area widget the dockWidget returned by dockWidget()
* function belongs to.
* Sets the dock area widget the dockWidget returned by dockWidget() function belongs to.
*/
void setDockAreaWidget(DockAreaWidget *dockArea);
@@ -152,6 +154,24 @@ public:
*/
void updateStyle();
/**
* Returns the icon size.
* If no explicit icon size has been set, the function returns an invalid QSize.
*/
QSize iconSize() const;
/**
* Set an explicit icon size.
* If no icon size has been set explicitly, than the tab sets the icon size depending
* on the style.
*/
void setIconSize(const QSize &size);
/**
* Returns true, if the tab has been clicked and the mouse is currently pressed.
*/
bool mousePressed() const;
void setVisible(bool visible) override;
signals:
@@ -161,6 +181,7 @@ signals:
void closeOtherTabsRequested();
void moved(const QPoint &globalPosition);
void elidedChanged(bool elided);
void iconSizeChanged();
}; // class DockWidgetTab
} // namespace ADS