mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +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),
|
||||
_lastGeometry() {
|
||||
|
||||
// setDockOptions(QMainWindow::ForceTabbedDocks);
|
||||
# ifndef LINUX
|
||||
setDockOptions(QMainWindow::ForceTabbedDocks);
|
||||
# endif
|
||||
Application::getInstance()->installEventFilter(this);
|
||||
}
|
||||
|
||||
|
@ -53,7 +55,7 @@ bool ToolWindow::event(QEvent* event) {
|
|||
}
|
||||
|
||||
bool ToolWindow::eventFilter(QObject* sender, QEvent* event) {
|
||||
#if 0
|
||||
# ifndef LINUX
|
||||
switch (event->type()) {
|
||||
case QEvent::WindowStateChange:
|
||||
if (Application::getInstance()->getWindow()->isMinimized()) {
|
||||
|
@ -78,8 +80,8 @@ bool ToolWindow::eventFilter(QObject* sender, QEvent* event) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
# endif
|
||||
}
|
||||
|
||||
void ToolWindow::onChildVisibilityUpdated(bool visible) {
|
||||
|
|
Loading…
Reference in a new issue