mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Removed debug output
This commit is contained in:
parent
c9123c3640
commit
aa7b36dbd1
@ -43,7 +43,6 @@
|
||||
#include <QXmlStreamWriter>
|
||||
#include <QVector>
|
||||
|
||||
|
||||
#include "DockContainerWidget.h"
|
||||
#include "DockWidget.h"
|
||||
#include "FloatingDockContainer.h"
|
||||
@ -51,8 +50,6 @@
|
||||
#include "DockOverlay.h"
|
||||
#include "DockAreaTabBar.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
namespace ads
|
||||
{
|
||||
@ -103,7 +100,7 @@ struct DockAreaWidgetPrivate
|
||||
/**
|
||||
* Convenience function to ease title widget access by index
|
||||
*/
|
||||
CDockWidgetTab* titleWidgetAt(int index)
|
||||
CDockWidgetTab* tabWidgetAt(int index)
|
||||
{
|
||||
return dockWidgetAt(index)->tabWidget();
|
||||
}
|
||||
@ -503,13 +500,6 @@ int CDockAreaWidget::index(CDockWidget* DockWidget)
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
int CDockAreaWidget::tabIndex(CDockWidget* DockWidget)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
QList<CDockWidget*> CDockAreaWidget::dockWidgets() const
|
||||
{
|
||||
@ -543,8 +533,8 @@ int CDockAreaWidget::indexOfContentByTitlePos(const QPoint& p, QWidget* exclude)
|
||||
{
|
||||
for (int i = 0; i < d->ContentsLayout->count(); ++i)
|
||||
{
|
||||
auto TitleWidget = d->titleWidgetAt(i);
|
||||
if (TitleWidget->geometry().contains(p) && (!exclude || TitleWidget != exclude))
|
||||
auto TabWidget = d->tabWidgetAt(i);
|
||||
if (TabWidget->isVisible() && TabWidget->geometry().contains(p) && (!exclude || TabWidget != exclude))
|
||||
{
|
||||
return i;
|
||||
}
|
||||
@ -673,7 +663,6 @@ CDockWidget* CDockAreaWidget::nextOpenDockWidget(CDockWidget* DockWidget) const
|
||||
//============================================================================
|
||||
void CDockAreaWidget::onTabsMenuAboutToShow()
|
||||
{
|
||||
std::cout << "CDockAreaWidget::onTabsMenuAboutToShow()" << std::endl;
|
||||
d->updateTabsMenu();
|
||||
}
|
||||
|
||||
|
@ -118,11 +118,6 @@ protected:
|
||||
*/
|
||||
int index(CDockWidget* DockWidget);
|
||||
|
||||
/**
|
||||
* Returns the tab index for the given dock widget
|
||||
*/
|
||||
int tabIndex(CDockWidget* DockWidget);
|
||||
|
||||
public:
|
||||
/**
|
||||
* Default Constructor
|
||||
|
@ -30,8 +30,6 @@
|
||||
//============================================================================
|
||||
#include "DockContainerWidget.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QEvent>
|
||||
#include <QList>
|
||||
#include <QGridLayout>
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include <DockWidgetTab.h>
|
||||
#include "DockManager.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QList>
|
||||
|
@ -37,8 +37,6 @@
|
||||
|
||||
#include "DockAreaWidget.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace ads
|
||||
{
|
||||
|
||||
|
@ -49,7 +49,6 @@
|
||||
#include "DockSplitter.h"
|
||||
#include "ads_globals.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace ads
|
||||
{
|
||||
@ -382,8 +381,6 @@ void CDockWidget::setToggleViewActionMode(eToggleViewActionMode Mode)
|
||||
//============================================================================
|
||||
void CDockWidget::toggleView(bool Open)
|
||||
{
|
||||
std::cout << "CDockWidget::toggleView " << objectName().toStdString()
|
||||
<< " " << Open << std::endl;
|
||||
QAction* Sender = qobject_cast<QAction*>(sender());
|
||||
if (Sender == d->ToggleViewAction && !d->ToggleViewAction->isCheckable())
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
|
||||
toIndex = d->DockArea->count() - 1;
|
||||
}
|
||||
qDebug() << "Move tab from " << fromIndex << " to " << toIndex;
|
||||
//d->DockArea->reorderDockWidget(fromIndex, toIndex);
|
||||
d->DockArea->reorderDockWidget(fromIndex, toIndex);
|
||||
}
|
||||
|
||||
if (!d->DragStartMousePosition.isNull())
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include "DockWidget.h"
|
||||
#include "DockOverlay.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace ads
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user