Removed debug output

This commit is contained in:
Uwe Kindler 2018-09-07 12:56:20 +02:00
parent c9123c3640
commit aa7b36dbd1
8 changed files with 4 additions and 29 deletions

View File

@ -43,7 +43,6 @@
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
#include <QVector> #include <QVector>
#include "DockContainerWidget.h" #include "DockContainerWidget.h"
#include "DockWidget.h" #include "DockWidget.h"
#include "FloatingDockContainer.h" #include "FloatingDockContainer.h"
@ -51,8 +50,6 @@
#include "DockOverlay.h" #include "DockOverlay.h"
#include "DockAreaTabBar.h" #include "DockAreaTabBar.h"
#include <iostream>
namespace ads namespace ads
{ {
@ -103,7 +100,7 @@ struct DockAreaWidgetPrivate
/** /**
* Convenience function to ease title widget access by index * Convenience function to ease title widget access by index
*/ */
CDockWidgetTab* titleWidgetAt(int index) CDockWidgetTab* tabWidgetAt(int index)
{ {
return dockWidgetAt(index)->tabWidget(); return dockWidgetAt(index)->tabWidget();
} }
@ -503,13 +500,6 @@ int CDockAreaWidget::index(CDockWidget* DockWidget)
} }
//============================================================================
int CDockAreaWidget::tabIndex(CDockWidget* DockWidget)
{
}
//============================================================================ //============================================================================
QList<CDockWidget*> CDockAreaWidget::dockWidgets() const 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) for (int i = 0; i < d->ContentsLayout->count(); ++i)
{ {
auto TitleWidget = d->titleWidgetAt(i); auto TabWidget = d->tabWidgetAt(i);
if (TitleWidget->geometry().contains(p) && (!exclude || TitleWidget != exclude)) if (TabWidget->isVisible() && TabWidget->geometry().contains(p) && (!exclude || TabWidget != exclude))
{ {
return i; return i;
} }
@ -673,7 +663,6 @@ CDockWidget* CDockAreaWidget::nextOpenDockWidget(CDockWidget* DockWidget) const
//============================================================================ //============================================================================
void CDockAreaWidget::onTabsMenuAboutToShow() void CDockAreaWidget::onTabsMenuAboutToShow()
{ {
std::cout << "CDockAreaWidget::onTabsMenuAboutToShow()" << std::endl;
d->updateTabsMenu(); d->updateTabsMenu();
} }

View File

@ -118,11 +118,6 @@ protected:
*/ */
int index(CDockWidget* DockWidget); int index(CDockWidget* DockWidget);
/**
* Returns the tab index for the given dock widget
*/
int tabIndex(CDockWidget* DockWidget);
public: public:
/** /**
* Default Constructor * Default Constructor

View File

@ -30,8 +30,6 @@
//============================================================================ //============================================================================
#include "DockContainerWidget.h" #include "DockContainerWidget.h"
#include <iostream>
#include <QEvent> #include <QEvent>
#include <QList> #include <QList>
#include <QGridLayout> #include <QGridLayout>

View File

@ -31,7 +31,6 @@
#include <DockWidgetTab.h> #include <DockWidgetTab.h>
#include "DockManager.h" #include "DockManager.h"
#include <iostream>
#include <QMainWindow> #include <QMainWindow>
#include <QList> #include <QList>

View File

@ -37,8 +37,6 @@
#include "DockAreaWidget.h" #include "DockAreaWidget.h"
#include <iostream>
namespace ads namespace ads
{ {

View File

@ -49,7 +49,6 @@
#include "DockSplitter.h" #include "DockSplitter.h"
#include "ads_globals.h" #include "ads_globals.h"
#include <iostream>
namespace ads namespace ads
{ {
@ -382,8 +381,6 @@ void CDockWidget::setToggleViewActionMode(eToggleViewActionMode Mode)
//============================================================================ //============================================================================
void CDockWidget::toggleView(bool Open) void CDockWidget::toggleView(bool Open)
{ {
std::cout << "CDockWidget::toggleView " << objectName().toStdString()
<< " " << Open << std::endl;
QAction* Sender = qobject_cast<QAction*>(sender()); QAction* Sender = qobject_cast<QAction*>(sender());
if (Sender == d->ToggleViewAction && !d->ToggleViewAction->isCheckable()) if (Sender == d->ToggleViewAction && !d->ToggleViewAction->isCheckable())
{ {

View File

@ -251,7 +251,7 @@ void CDockWidgetTab::mouseReleaseEvent(QMouseEvent* ev)
toIndex = d->DockArea->count() - 1; toIndex = d->DockArea->count() - 1;
} }
qDebug() << "Move tab from " << fromIndex << " to " << toIndex; qDebug() << "Move tab from " << fromIndex << " to " << toIndex;
//d->DockArea->reorderDockWidget(fromIndex, toIndex); d->DockArea->reorderDockWidget(fromIndex, toIndex);
} }
if (!d->DragStartMousePosition.isNull()) if (!d->DragStartMousePosition.isNull())

View File

@ -43,7 +43,6 @@
#include "DockWidget.h" #include "DockWidget.h"
#include "DockOverlay.h" #include "DockOverlay.h"
#include <iostream>
namespace ads namespace ads
{ {