2017-03-24 17:18:25 +08:00
|
|
|
//============================================================================
|
|
|
|
/// \file DockSplitter.cpp
|
|
|
|
/// \author Uwe Kindler
|
|
|
|
/// \date 24.03.2017
|
|
|
|
/// \brief Implementation of CDockSplitter
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// INCLUDES
|
|
|
|
//============================================================================
|
|
|
|
#include <DockSplitter.h>
|
|
|
|
|
2017-03-28 18:01:27 +08:00
|
|
|
#include <QDebug>
|
2017-03-24 17:18:25 +08:00
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
CDockSplitter::~CDockSplitter()
|
|
|
|
{
|
2017-03-28 18:01:27 +08:00
|
|
|
qDebug() << "~CDockSplitter";
|
2017-03-24 17:18:25 +08:00
|
|
|
}
|
|
|
|
|
2017-03-29 21:43:18 +08:00
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
bool CDockSplitter::hasVisibleContent() const
|
|
|
|
{
|
|
|
|
// TODO Cache or precalculate this to speed up
|
|
|
|
for (int i = 0; i < count(); ++i)
|
|
|
|
{
|
|
|
|
if (widget(i)->isVisibleTo(this))
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-03-24 17:18:25 +08:00
|
|
|
} // namespace ads
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// EOF DockSplitter.cpp
|