Showing the changes to interface/src/ui/RunningScriptsWidget.cpp (1 of 3 files). Show all
Unified · Split
| @@ -22,6 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #include "Application.h" |
| 23 | 23 | #include "Menu.h" |
| 24 | 24 | #include "ScriptsModel.h" |
| 25 | +#include "UIUtil.h" | |
| 25 | 26 | |
| 26 | 27 | RunningScriptsWidget::RunningScriptsWidget(QWidget* parent) : |
| 27 | 28 | QWidget(parent, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | |
| @@ -154,7 +155,10 @@ void RunningScriptsWidget::showEvent(QShowEvent* event) { · 126 unmodified lines | ||
| 154 | 155 | } |
| 155 | 156 | |
| 156 | 157 | const QRect parentGeometry = parentWidget()->geometry(); |
| 157 | − setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y(), size().width(), parentWidget()->height()); | |
| 158 | + int titleBarHeight = UIUtil::getWindowTitleBarHeight(this); | |
| 159 | + | |
| 160 | + setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y() + titleBarHeight, | |
| 161 | + size().width(), parentWidget()->height() - titleBarHeight); | |
| 158 | 162 | |
| 159 | 163 | QWidget::showEvent(event); |
| 160 | 164 | } |