History

Reduce height of RunningScripts so titlebar is inside main window

Ryan Huffman committed 12 years ago

Commit 67cefc81 parent a95b6703 files · +58 −1Browse files

Showing the changes to interface/src/ui/RunningScriptsWidget.cpp (1 of 3 files). Show all

Unified · Split

interface/src/ui/RunningScriptsWidget.cpp+5−1
@@ -22,6 +22,7 @@ · 21 unmodified lines
2222 #include "Application.h"
2323 #include "Menu.h"
2424 #include "ScriptsModel.h"
25+#include "UIUtil.h"
2526
2627 RunningScriptsWidget::RunningScriptsWidget(QWidget* parent) :
2728 QWidget(parent, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint |
@@ -154,7 +155,10 @@ void RunningScriptsWidget::showEvent(QShowEvent* event) { · 126 unmodified lines
154155 }
155156
156157 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);
158162
159163 QWidget::showEvent(event);
160164 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t