Commit 9107f0c5 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlJSDebugger: Change namespace from QmlObserver to QmlJSDebugger

The library not only contains the observer part, but also the javascript
debugger. Reflect this in the namespace.
parent b4dd2080
......@@ -37,7 +37,7 @@
#include <QGraphicsItem>
#include <QDeclarativeItem>
namespace QmlObserver {
namespace QmlJSDebugger {
AbstractFormEditorTool::AbstractFormEditorTool(QDeclarativeViewObserver *editorView)
: QObject(editorView), m_observer(editorView)
......
......@@ -45,7 +45,7 @@ class QWheelEvent;
class QDeclarativeView;
QT_END_NAMESPACE
namespace QmlObserver {
namespace QmlJSDebugger {
class QDeclarativeViewObserver;
......
......@@ -8,7 +8,7 @@
#include <QDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
const qreal AnimDelta = 0.025f;
const int AnimInterval = 30;
......@@ -238,4 +238,4 @@ void BoundingRectHighlighter::refresh()
}
} // namespace QmlObserver
} // namespace QmlJSDebugger
......@@ -12,7 +12,7 @@ QT_FORWARD_DECLARE_CLASS(QWidget);
QT_FORWARD_DECLARE_CLASS(QStyleOptionGraphicsItem);
QT_FORWARD_DECLARE_CLASS(QTimer);
namespace QmlObserver {
namespace QmlJSDebugger {
class QDeclarativeViewObserver;
class BoundingBox;
......@@ -73,6 +73,6 @@ public:
int type() const;
};
} // namespace QmlObserver
} // namespace QmlJSDebugger
#endif // BOUNDINGRECTHIGHLIGHTER_H
......@@ -9,7 +9,7 @@
#include <QApplication>
#include <QPalette>
namespace QmlObserver {
namespace QmlJSDebugger {
ColorPickerTool::ColorPickerTool(QDeclarativeViewObserver *view) :
AbstractFormEditorTool(view)
......@@ -86,4 +86,4 @@ void ColorPickerTool::pickColor(const QPoint &pos)
emit selectedColorChanged(m_selectedColor);
}
} // namespace QmlObserver
} // namespace QmlJSDebugger
......@@ -7,7 +7,7 @@
QT_FORWARD_DECLARE_CLASS(QPoint);
namespace QmlObserver {
namespace QmlJSDebugger {
class ColorPickerTool : public AbstractFormEditorTool
{
......@@ -48,6 +48,6 @@ private:
};
} // namespace QmlObserver
} // namespace QmlJSDebugger
#endif // COLORPICKERTOOL_H
......@@ -32,7 +32,7 @@
#include <QGraphicsScene>
namespace QmlObserver {
namespace QmlJSDebugger {
LayerItem::LayerItem(QGraphicsScene* scene)
: QGraphicsObject()
......@@ -75,4 +75,4 @@ QList<QGraphicsItem*> LayerItem::findAllChildItems(const QGraphicsItem *item) co
return itemList;
}
} // namespace QmlObserver
} // namespace QmlJSDebugger
......@@ -33,7 +33,7 @@
#include <QGraphicsObject>
#include <QWeakPointer>
namespace QmlObserver {
namespace QmlJSDebugger {
class FormEditorScene;
......
......@@ -8,7 +8,7 @@
#include <QDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
QmlToolbar::QmlToolbar(QWidget *parent)
: QToolBar(parent)
......
......@@ -5,7 +5,7 @@
#include <QIcon>
#include "qmlobserverconstants.h"
namespace QmlObserver {
namespace QmlJSDebugger {
class ToolBarColorBox;
......
......@@ -32,7 +32,7 @@
#include <QDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
RubberBandSelectionManipulator::RubberBandSelectionManipulator(QGraphicsObject *layerItem, QDeclarativeViewObserver *editorView)
: m_selectionRectangleElement(layerItem),
......
......@@ -33,7 +33,7 @@
#include "selectionrectangle.h"
namespace QmlObserver {
namespace QmlJSDebugger {
class QDeclarativeViewObserver;
......
......@@ -36,7 +36,7 @@
#include <QGraphicsScene>
#include <QDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
SelectionIndicator::SelectionIndicator(QDeclarativeViewObserver *editorView, QGraphicsObject *layerItem)
: m_layerItem(layerItem), m_view(editorView)
......@@ -123,5 +123,5 @@ void SelectionIndicator::setItems(const QList<QWeakPointer<QGraphicsObject> > &i
}
}
} //namespace QmlObserver
} //namespace QmlJSDebugger
......@@ -34,7 +34,7 @@
#include <QGraphicsPolygonItem>
#include <QGraphicsObject>
namespace QmlObserver {
namespace QmlJSDebugger {
class QDeclarativeViewObserver;
......
......@@ -36,7 +36,7 @@
#include <cmath>
#include <QGraphicsScene>
namespace QmlObserver {
namespace QmlJSDebugger {
class SelectionRectShape : public QGraphicsRectItem
{
......
......@@ -34,7 +34,7 @@
#include <QGraphicsRectItem>
#include <QGraphicsObject>
namespace QmlObserver {
namespace QmlJSDebugger {
class SelectionRectangle
{
......
......@@ -46,7 +46,7 @@
#include <QDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
SelectionTool::SelectionTool(QDeclarativeViewObserver *editorView)
: AbstractFormEditorTool(editorView),
......
......@@ -45,7 +45,7 @@ QT_FORWARD_DECLARE_CLASS(QGraphicsItem);
QT_FORWARD_DECLARE_CLASS(QMouseEvent);
QT_FORWARD_DECLARE_CLASS(QKeyEvent);
namespace QmlObserver {
namespace QmlJSDebugger {
class SelectionTool : public AbstractFormEditorTool
{
......
......@@ -32,7 +32,7 @@
#include "qdeclarativeviewobserver_p.h"
#include <QtDebug>
namespace QmlObserver {
namespace QmlJSDebugger {
SingleSelectionManipulator::SingleSelectionManipulator(QDeclarativeViewObserver *editorView)
: m_editorView(editorView),
......
......@@ -35,7 +35,7 @@
QT_FORWARD_DECLARE_CLASS(QGraphicsItem);
namespace QmlObserver {
namespace QmlJSDebugger {
class QDeclarativeViewObserver;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment