mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 04:24:47 +02:00
change how tool window acts on linux
This commit is contained in:
parent
2a06816f71
commit
fb93d08dd8
1 changed files with 5 additions and 3 deletions
|
@ -22,7 +22,9 @@ ToolWindow::ToolWindow(QWidget* parent) :
|
||||||
_hasShown(false),
|
_hasShown(false),
|
||||||
_lastGeometry() {
|
_lastGeometry() {
|
||||||
|
|
||||||
// setDockOptions(QMainWindow::ForceTabbedDocks);
|
# ifndef LINUX
|
||||||
|
setDockOptions(QMainWindow::ForceTabbedDocks);
|
||||||
|
# endif
|
||||||
Application::getInstance()->installEventFilter(this);
|
Application::getInstance()->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +55,7 @@ bool ToolWindow::event(QEvent* event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ToolWindow::eventFilter(QObject* sender, QEvent* event) {
|
bool ToolWindow::eventFilter(QObject* sender, QEvent* event) {
|
||||||
#if 0
|
# ifndef LINUX
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::WindowStateChange:
|
case QEvent::WindowStateChange:
|
||||||
if (Application::getInstance()->getWindow()->isMinimized()) {
|
if (Application::getInstance()->getWindow()->isMinimized()) {
|
||||||
|
@ -78,8 +80,8 @@ bool ToolWindow::eventFilter(QObject* sender, QEvent* event) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return false;
|
return false;
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolWindow::onChildVisibilityUpdated(bool visible) {
|
void ToolWindow::onChildVisibilityUpdated(bool visible) {
|
||||||
|
|
Loading…
Reference in a new issue