19 #include <QResizeEvent>
21 #include "basedockwidget.h"
22 #include "platformhandler.h"
24 BaseDockWidget::BaseDockWidget(
QWidget* pParent)
29 if (PlatformHandler::isDarkMode())
31 setStyleSheet(
"QDockWidget::title { background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4e4f4d, stop: 1 #424241); "
32 "background-repeat: repeat-x; text-align: center;"
33 "border-style: solid; border-bottom-color: #000000;"
34 "border-width: 1px; }");
40 BaseDockWidget::~BaseDockWidget()
49 int minHeight = getMinHeightForWidth(event->
size().
width() - 2);
51 if (minHeight < 0)
return;
61 int BaseDockWidget::getMinHeightForWidth(
int width)
const QSize & size() const const