mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 16:14:45 +02:00
Merge pull request #4853 from huffman/remove-scripts-tip
Remove scripts 'Tip' label and fix tool window heights
This commit is contained in:
commit
96b761357b
3 changed files with 2 additions and 20 deletions
|
@ -162,8 +162,7 @@ void RunningScriptsWidget::showEvent(QShowEvent* event) {
|
||||||
|
|
||||||
QRect parentGeometry = Application::getInstance()->getDesirableApplicationGeometry();
|
QRect parentGeometry = Application::getInstance()->getDesirableApplicationGeometry();
|
||||||
int titleBarHeight = UIUtil::getWindowTitleBarHeight(this);
|
int titleBarHeight = UIUtil::getWindowTitleBarHeight(this);
|
||||||
int menuBarHeight = Menu::getInstance()->geometry().height();
|
int topMargin = titleBarHeight;
|
||||||
int topMargin = titleBarHeight + menuBarHeight;
|
|
||||||
|
|
||||||
setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y() + topMargin,
|
setGeometry(parentGeometry.topLeft().x(), parentGeometry.topLeft().y() + topMargin,
|
||||||
size().width(), parentWidget()->height() - topMargin);
|
size().width(), parentWidget()->height() - topMargin);
|
||||||
|
|
|
@ -38,8 +38,7 @@ bool ToolWindow::event(QEvent* event) {
|
||||||
QRect mainGeometry = mainWindow->geometry();
|
QRect mainGeometry = mainWindow->geometry();
|
||||||
|
|
||||||
int titleBarHeight = UIUtil::getWindowTitleBarHeight(this);
|
int titleBarHeight = UIUtil::getWindowTitleBarHeight(this);
|
||||||
int menuBarHeight = Menu::getInstance()->geometry().height();
|
int topMargin = titleBarHeight;
|
||||||
int topMargin = titleBarHeight + menuBarHeight;
|
|
||||||
|
|
||||||
_lastGeometry = QRect(mainGeometry.topLeft().x(), mainGeometry.topLeft().y() + topMargin,
|
_lastGeometry = QRect(mainGeometry.topLeft().x(), mainGeometry.topLeft().y() + topMargin,
|
||||||
DEFAULT_WIDTH, mainGeometry.height() - topMargin);
|
DEFAULT_WIDTH, mainGeometry.height() - topMargin);
|
||||||
|
|
|
@ -349,22 +349,6 @@ font: bold 16pt;
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="tipLabel">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Helvetica,Arial,sans-serif</family>
|
|
||||||
<pointsize>14</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">color: #5f5f5f; margin: 2px;</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Tip</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in a new issue