change how tool window acts on linux

This commit is contained in:
Seth Alves 2015-03-12 09:13:29 -07:00
parent 2a06816f71
commit fb93d08dd8

View file

@ -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) {