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
+8 -7
View File
@@ -20,19 +20,20 @@
#include "table.h"
namespace olive {
NodeTablePanel::NodeTablePanel() :
TimeBasedPanel(QStringLiteral("NodeTablePanel"))
namespace olive
{
SetTimeBasedWidget(new NodeTableWidget(this));
Retranslate();
NodeTablePanel::NodeTablePanel()
: TimeBasedPanel(QStringLiteral("NodeTablePanel"))
{
SetTimeBasedWidget(new NodeTableWidget(this));
Retranslate();
}
void NodeTablePanel::Retranslate()
{
SetTitle(tr("Table View"));
SetTitle(tr("Table View"));
}
}
+15 -15
View File
@@ -24,28 +24,28 @@
#include "panel/timebased/timebased.h"
#include "widget/nodetableview/nodetablewidget.h"
namespace olive {
class NodeTablePanel : public TimeBasedPanel
namespace olive
{
Q_OBJECT
class NodeTablePanel : public TimeBasedPanel {
Q_OBJECT
public:
NodeTablePanel();
NodeTablePanel();
public slots:
void SelectNodes(const QVector<Node*>& nodes)
{
static_cast<NodeTableWidget*>(GetTimeBasedWidget())->SelectNodes(nodes);
}
void SelectNodes(const QVector<Node *> &nodes)
{
static_cast<NodeTableWidget *>(GetTimeBasedWidget())->SelectNodes(nodes);
}
void DeselectNodes(const QVector<Node*>& nodes)
{
static_cast<NodeTableWidget*>(GetTimeBasedWidget())->DeselectNodes(nodes);
}
void DeselectNodes(const QVector<Node *> &nodes)
{
static_cast<NodeTableWidget *>(GetTimeBasedWidget())
->DeselectNodes(nodes);
}
private:
virtual void Retranslate() override;
virtual void Retranslate() override;
};
}