We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ebc83 commit 50c3066Copy full SHA for 50c3066
src/DockWidget.cpp
@@ -525,16 +525,11 @@ bool CDockWidget::event(QEvent *e)
525
switch (e->type())
526
{
527
case QEvent::Hide:
528
- std::cout << this->objectName().toStdString() << " visible: " << isVisible()
529
- << " hidden: " << isHidden() << " visibleTo: " << isVisibleTo(d->DockManager) << std::endl;
530
emit visibilityChanged(false);
531
break;
532
533
case QEvent::Show:
534
- {
535
- QPoint parentTopLeft(0, 0);
536
- emit visibilityChanged(geometry().right() >= parentTopLeft.x() && geometry().bottom() >= parentTopLeft.y());
537
- }
+ emit visibilityChanged(geometry().right() >= 0 && geometry().bottom() >= 0);
538
539
540
case QEvent::WindowTitleChange :
0 commit comments