Implemented proper updating of floating widget title

This commit is contained in:
Uwe Kindler
2018-10-30 23:45:59 +01:00
parent 81523b0346
commit 6617cf6f19
11 changed files with 67 additions and 31 deletions

View File

@@ -132,12 +132,10 @@ public:
void setCurrentIndex(int index)
{
std::cout << "CDockAreaLayout::setCurrentIndex " << index << std::endl;
QWidget *prev = currentWidget();
QWidget *next = widget(index);
if (!next || (next == prev && !m_CurrentWidget))
{
std::cout << "return" << std::endl;
return;
}
@@ -150,7 +148,6 @@ public:
parent->setUpdatesEnabled(false);
}
std::cout << "m_ParentLayout->addWidget(next)" << std::endl;
auto LayoutItem = m_ParentLayout->takeAt(1);
if (LayoutItem)
{