use hardcoded namespace

The macro defined namespaces confused the hell out of lupdate and more or less broke translations permanently. Looks like the only way we can do it is to have a hardcoded namespace, which goes against my instinct, but honestly how likely is it that we'll change the namespace anyway (I guess forks might want to do it, but that's their problem ;) )
This commit is contained in:
itsmattkc
2020-11-17 20:24:42 +11:00
parent d241090a9f
commit 75d4cd899b
626 changed files with 1971 additions and 1972 deletions
@@ -24,7 +24,7 @@
#include "core.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
HandMovableView::HandMovableView(QWidget* parent) :
QGraphicsView(parent),
@@ -115,4 +115,4 @@ const QGraphicsView::DragMode &HandMovableView::GetDefaultDragMode() const
return default_drag_mode_;
}
OLIVE_NAMESPACE_EXIT
}
@@ -25,7 +25,7 @@
#include "tool/tool.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class HandMovableView : public QGraphicsView
{
@@ -54,6 +54,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // HANDMOVABLEVIEW_H
@@ -33,7 +33,7 @@
#include "node/input/media/media.h"
#include "project/item/footage/footage.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TimelineView::TimelineView(Qt::Alignment vertical_alignment, QWidget *parent) :
TimelineViewBase(parent),
@@ -480,4 +480,4 @@ void TimelineView::UserSetTime(const int64_t &time)
emit TimeChanged(time);
}
OLIVE_NAMESPACE_EXIT
}
@@ -35,7 +35,7 @@
#include "widget/timelinewidget/undo/undo.h"
#include "undo/undostack.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A widget for viewing and interacting Sequences
@@ -130,6 +130,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEW_H
@@ -29,7 +29,7 @@
#include "common/timecodefunctions.h"
#include "config/config.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
const double TimelineViewBase::kMaximumScale = 8192;
@@ -359,4 +359,4 @@ bool TimelineViewBase::WheelEventIsAZoomEvent(QWheelEvent *event)
return (static_cast<bool>(event->modifiers() & Qt::ControlModifier) == !Config::Current()["ScrollZooms"].toBool());
}
OLIVE_NAMESPACE_EXIT
}
@@ -28,7 +28,7 @@
#include "widget/timelinewidget/snapservice.h"
#include "widget/timelinewidget/timelinescaledobject.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TimelineViewBase : public HandMovableView, public TimelineScaledObject
{
@@ -134,6 +134,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEWBASE_H
@@ -35,7 +35,7 @@
#include "node/block/transition/transition.h"
#include "widget/viewer/audiowaveformview.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TimelineViewBlockItem::TimelineViewBlockItem(Block *block, QGraphicsItem* parent) :
TimelineViewRect(parent),
@@ -192,4 +192,4 @@ void TimelineViewBlockItem::paint(QPainter *painter, const QStyleOptionGraphicsI
}
}
OLIVE_NAMESPACE_EXIT
}
@@ -24,7 +24,7 @@
#include "timelineviewrect.h"
#include "node/block/clip/clip.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A graphical representation of a ClipBlock
@@ -46,6 +46,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEWCLIPITEM_H
@@ -22,7 +22,7 @@
#include <QPainter>
OLIVE_NAMESPACE_ENTER
namespace olive {
TimelineViewGhostItem::TimelineViewGhostItem() :
track_adj_(0),
@@ -203,4 +203,4 @@ bool TimelineViewGhostItem::HasBeenAdjusted() const
|| GetTrackAdjustment() != 0;
}
OLIVE_NAMESPACE_EXIT
}
@@ -28,7 +28,7 @@
#include "timelineviewblockitem.h"
#include "timelineviewrect.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A graphical representation of changes the user is making before they apply it
*/
@@ -142,6 +142,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEWGHOSTITEM_H
@@ -24,7 +24,7 @@
#include "widget/timelinewidget/timelinescaledobject.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TimelineViewMouseEvent::TimelineViewMouseEvent(const qreal &scene_x,
const double &scale_x,
@@ -100,4 +100,4 @@ void TimelineViewMouseEvent::ignore()
source_event_->ignore();
}
OLIVE_NAMESPACE_EXIT
}
@@ -27,7 +27,7 @@
#include "timeline/timelinecoordinate.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
class TimelineViewMouseEvent
{
@@ -84,6 +84,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEWMOUSEEVENT_H
@@ -20,7 +20,7 @@
#include "timelineviewrect.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
TimelineViewRect::TimelineViewRect(QGraphicsItem* parent) :
QGraphicsRectItem(parent),
@@ -62,4 +62,4 @@ void TimelineViewRect::TimebaseChangedEvent(const rational &tb)
UpdateRect();
}
OLIVE_NAMESPACE_EXIT
}
@@ -26,7 +26,7 @@
#include "timeline/timelinecoordinate.h"
#include "../timelinescaledobject.h"
OLIVE_NAMESPACE_ENTER
namespace olive {
/**
* @brief A base class for graphical representations of Block nodes
@@ -55,6 +55,6 @@ protected:
TrackReference track_;
};
OLIVE_NAMESPACE_EXIT
}
#endif // TIMELINEVIEWRECT_H