Added sideTabBarArea property to CAutoHideDockContainer to improve CSS styling options

This commit is contained in:
Uwe Kindler 2022-10-15 14:24:19 +02:00
parent 5b3ad7e5db
commit 9f9d9792aa
2 changed files with 27 additions and 2 deletions

View File

@ -47,12 +47,13 @@ class CSideTabBar;
class CDockAreaWidget; class CDockAreaWidget;
class CDockingStateReader; class CDockingStateReader;
// Note: This widget must be a QSplitter, inheriting from QWidget and keeping an internal splitter breaks ActiveX widgets // Note: This widget must be a QSplitter, inheriting from QWidget and keeping an
// internal splitter breaks ActiveX widgets
// likely due to layout issues between this widget and the internal splitter // likely due to layout issues between this widget and the internal splitter
class ADS_EXPORT CAutoHideDockContainer : public QSplitter class ADS_EXPORT CAutoHideDockContainer : public QSplitter
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(int sideTabBarArea READ sideTabBarArea)
private: private:
AutoHideDockContainerPrivate* d; ///< private data (pimpl) AutoHideDockContainerPrivate* d; ///< private data (pimpl)
friend struct AutoHideDockContainerPrivate; friend struct AutoHideDockContainerPrivate;

View File

@ -74,6 +74,30 @@ QScrollArea#dockWidgetScrollArea {
qproperty-iconSize: 16px; qproperty-iconSize: 16px;
} }
#autoHideTitleLabel {
padding-left: 4px;
}
/*
ads--CAutoHideDockContainer::handle {
background: palette(dark);
}
ads--CAutoHideDockContainer::handle:vertical {
height: 4px;
}
ads--CAutoHideDockContainer::handle:horizontal {
width: 4px;
}
*/
/*ads--CAutoHideDockContainer[sideTabBarArea="0"]:handle {
border: 1px solid palette(dark);
background: white;
}*/
#tabCloseButton { #tabCloseButton {
margin-top: 2px; margin-top: 2px;
background: none; background: none;