change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+30 -31
View File
@@ -30,56 +30,55 @@
#include "nodeviewitem.h"
#include "undo/undostack.h"
namespace olive {
class NodeViewScene : public QGraphicsScene
namespace olive
{
Q_OBJECT
class NodeViewScene : public QGraphicsScene {
Q_OBJECT
public:
NodeViewScene(QObject *parent = nullptr);
NodeViewScene(QObject *parent = nullptr);
void SelectAll();
void DeselectAll();
void SelectAll();
void DeselectAll();
QVector<NodeViewItem*> GetSelectedItems() const;
QVector<NodeViewItem *> GetSelectedItems() const;
const QHash<Node*, NodeViewContext*> &context_map() const
{
return context_map_;
}
const QHash<Node *, NodeViewContext *> &context_map() const
{
return context_map_;
}
Qt::Orientation GetFlowOrientation() const;
Qt::Orientation GetFlowOrientation() const;
NodeViewCommon::FlowDirection GetFlowDirection() const
{
return direction_;
}
NodeViewCommon::FlowDirection GetFlowDirection() const
{
return direction_;
}
void SetFlowDirection(NodeViewCommon::FlowDirection direction);
void SetFlowDirection(NodeViewCommon::FlowDirection direction);
bool GetEdgesAreCurved() const
{
return curved_edges_;
}
bool GetEdgesAreCurved() const
{
return curved_edges_;
}
public slots:
NodeViewContext *AddContext(Node *node);
void RemoveContext(Node *node);
NodeViewContext *AddContext(Node *node);
void RemoveContext(Node *node);
/**
/**
* @brief Set whether edges in this scene should be curved or not
*/
void SetEdgesAreCurved(bool curved);
void SetEdgesAreCurved(bool curved);
private:
QHash<Node*, NodeViewContext*> context_map_;
QHash<Node *, NodeViewContext *> context_map_;
Project* graph_;
Project *graph_;
NodeViewCommon::FlowDirection direction_;
bool curved_edges_;
NodeViewCommon::FlowDirection direction_;
bool curved_edges_;
};
}