File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -86,18 +86,6 @@ class CDockAreaLayout
86
86
87
87
}
88
88
89
- /* *
90
- * Delete widgets without parents in this layout
91
- */
92
- ~CDockAreaLayout ()
93
- {
94
- for (auto Widget : m_Widgets)
95
- {
96
- if (!Widget->parent ())
97
- delete Widget;
98
- }
99
- }
100
-
101
89
/* *
102
90
* Returns the number of widgets in this layout
103
91
*/
@@ -977,7 +965,9 @@ QSize CDockAreaWidget::minimumSizeHint() const
977
965
void CDockAreaWidget::onDockWidgetFeaturesChanged ()
978
966
{
979
967
if (d->TitleBar )
968
+ {
980
969
d->updateTitleBarButtonStates ();
970
+ }
981
971
}
982
972
983
973
Original file line number Diff line number Diff line change @@ -484,12 +484,6 @@ CDockManager::~CDockManager()
484
484
{
485
485
delete FloatingWidget;
486
486
}
487
- auto DockWidgetsMap = d->DockWidgetsMap ;
488
- for (auto DockWidget : d->DockWidgetsMap )
489
- {
490
- if (!DockWidget->parent ())
491
- delete DockWidget;
492
- }
493
487
delete d;
494
488
}
495
489
@@ -659,14 +653,7 @@ void CDockManager::showEvent(QShowEvent *event)
659
653
660
654
for (auto FloatingWidget : d->UninitializedFloatingWidgets )
661
655
{
662
- for (CDockWidget* DockWidget : FloatingWidget->dockWidgets ())
663
- {
664
- if (!DockWidget->isClosed ())
665
- {
666
- FloatingWidget->show ();
667
- break ;
668
- }
669
- }
656
+ FloatingWidget->show ();
670
657
}
671
658
d->UninitializedFloatingWidgets .clear ();
672
659
}
You can’t perform that action at this time.
0 commit comments