mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Removed some std::cout debug output
This commit is contained in:
parent
cb5e9f60a1
commit
364ee33f9c
@ -197,7 +197,6 @@ CAutoHideDockContainer::CAutoHideDockContainer(CDockWidget* DockWidget, SideBarL
|
|||||||
Super(parent),
|
Super(parent),
|
||||||
d(new AutoHideDockContainerPrivate(this))
|
d(new AutoHideDockContainerPrivate(this))
|
||||||
{
|
{
|
||||||
std::cout << "CAutoHideDockContainer::constructor" << std::endl;
|
|
||||||
hide(); // auto hide dock container is initially always hidden
|
hide(); // auto hide dock container is initially always hidden
|
||||||
d->SideTabBarArea = area;
|
d->SideTabBarArea = area;
|
||||||
d->SideTab = componentsFactory()->createDockWidgetSideTab(nullptr);
|
d->SideTab = componentsFactory()->createDockWidgetSideTab(nullptr);
|
||||||
@ -216,7 +215,6 @@ CAutoHideDockContainer::CAutoHideDockContainer(CDockWidget* DockWidget, SideBarL
|
|||||||
d->ResizeHandle->setMinResizeSize(64);
|
d->ResizeHandle->setMinResizeSize(64);
|
||||||
bool OpaqueResize = CDockManager::testConfigFlag(CDockManager::OpaqueSplitterResize);
|
bool OpaqueResize = CDockManager::testConfigFlag(CDockManager::OpaqueSplitterResize);
|
||||||
d->ResizeHandle->setOpaqueResize(OpaqueResize);
|
d->ResizeHandle->setOpaqueResize(OpaqueResize);
|
||||||
std::cout << "d->DockArea->size(); " << d->DockArea->size().width() << std::endl;
|
|
||||||
d->Size = d->DockArea->size();
|
d->Size = d->DockArea->size();
|
||||||
d->InitialDockWidgetSize = DockWidget->size();
|
d->InitialDockWidgetSize = DockWidget->size();
|
||||||
|
|
||||||
@ -337,7 +335,6 @@ CDockWidget* CAutoHideDockContainer::dockWidget() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget)
|
void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget)
|
||||||
{
|
{
|
||||||
std::cout << "CAutoHideDockContainer::addDockWidget " << std::endl;
|
|
||||||
if (d->DockWidget)
|
if (d->DockWidget)
|
||||||
{
|
{
|
||||||
// Remove the old dock widget at this area
|
// Remove the old dock widget at this area
|
||||||
@ -411,7 +408,6 @@ void CAutoHideDockContainer::moveContentsToParent()
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CAutoHideDockContainer::cleanupAndDelete()
|
void CAutoHideDockContainer::cleanupAndDelete()
|
||||||
{
|
{
|
||||||
std::cout << "CAutoHideDockContainer::cleanupAndDelete()" << std::endl;
|
|
||||||
const auto dockWidget = d->DockWidget;
|
const auto dockWidget = d->DockWidget;
|
||||||
if (dockWidget)
|
if (dockWidget)
|
||||||
{
|
{
|
||||||
|
@ -476,7 +476,6 @@ void CAutoHideTab::mouseReleaseEvent(QMouseEvent* ev)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case DraggingFloatingWidget:
|
case DraggingFloatingWidget:
|
||||||
std::cout << "CAutoHideTab::mouseReleaseEvent" << std::endl;
|
|
||||||
ev->accept();
|
ev->accept();
|
||||||
d->FloatingWidget->finishDragging();
|
d->FloatingWidget->finishDragging();
|
||||||
if (d->DockWidget->isAutoHide() && d->DragStartOrientation != orientation())
|
if (d->DockWidget->isAutoHide() && d->DragStartOrientation != orientation())
|
||||||
|
@ -661,7 +661,6 @@ void CDockAreaTitleBar::mouseMoveEvent(QMouseEvent* ev)
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CDockAreaTitleBar::mouseDoubleClickEvent(QMouseEvent *event)
|
void CDockAreaTitleBar::mouseDoubleClickEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
std::cout << "CDockAreaTitleBar::mouseDoubleClickEvent" << std::endl;
|
|
||||||
// If this is the last dock area in a dock container it does not make
|
// If this is the last dock area in a dock container it does not make
|
||||||
// sense to move it to a new floating widget and leave this one
|
// sense to move it to a new floating widget and leave this one
|
||||||
// empty
|
// empty
|
||||||
|
@ -769,7 +769,6 @@ void DockContainerWidgetPrivate::moveToNewSection(QWidget* Widget, CDockAreaWidg
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void DockContainerWidgetPrivate::moveToAutoHideSideBar(QWidget* Widget, DockWidgetArea area)
|
void DockContainerWidgetPrivate::moveToAutoHideSideBar(QWidget* Widget, DockWidgetArea area)
|
||||||
{
|
{
|
||||||
std::cout << "DockContainerWidgetPrivate::moveToAutoHideSideBar " << area << std::endl;
|
|
||||||
CDockWidget* DroppedDockWidget = qobject_cast<CDockWidget*>(Widget);
|
CDockWidget* DroppedDockWidget = qobject_cast<CDockWidget*>(Widget);
|
||||||
CDockAreaWidget* DroppedDockArea = qobject_cast<CDockAreaWidget*>(Widget);
|
CDockAreaWidget* DroppedDockArea = qobject_cast<CDockAreaWidget*>(Widget);
|
||||||
auto SideBarLocation = internal::toSideBarLocation(area);
|
auto SideBarLocation = internal::toSideBarLocation(area);
|
||||||
@ -1727,7 +1726,6 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// mouse is over container
|
// mouse is over container
|
||||||
std::cout << "Mouse is over container" << std::endl;
|
|
||||||
if (InvalidDockWidgetArea == dropArea && InvalidDockWidgetArea != ContainerDropArea)
|
if (InvalidDockWidgetArea == dropArea && InvalidDockWidgetArea != ContainerDropArea)
|
||||||
{
|
{
|
||||||
if (internal::isSideBarArea(ContainerDropArea))
|
if (internal::isSideBarArea(ContainerDropArea))
|
||||||
@ -1777,7 +1775,6 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CDockContainerWidget::dropWidget(QWidget* Widget, DockWidgetArea DropArea, CDockAreaWidget* TargetAreaWidget)
|
void CDockContainerWidget::dropWidget(QWidget* Widget, DockWidgetArea DropArea, CDockAreaWidget* TargetAreaWidget)
|
||||||
{
|
{
|
||||||
std::cout << "CDockContainerWidget::dropWidget" << std::endl;
|
|
||||||
CDockWidget* SingleDockWidget = topLevelDockWidget();
|
CDockWidget* SingleDockWidget = topLevelDockWidget();
|
||||||
if (TargetAreaWidget)
|
if (TargetAreaWidget)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user