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
+20 -16
View File
@@ -22,44 +22,48 @@
#include "window/mainwindow/mainwindow.h"
namespace olive {
ParamPanel::ParamPanel() :
TimeBasedPanel(QStringLiteral("ParamPanel"))
namespace olive
{
NodeParamView* view = new NodeParamView(this);
connect(view, &NodeParamView::FocusedNodeChanged, this, &ParamPanel::FocusedNodeChanged);
connect(view, &NodeParamView::SelectedNodesChanged, this, &ParamPanel::SelectedNodesChanged);
connect(view, &NodeParamView::RequestViewerToStartEditingText, this, &ParamPanel::RequestViewerToStartEditingText);
connect(this, &ParamPanel::shown, view, &NodeParamView::UpdateElementY);
SetTimeBasedWidget(view);
Retranslate();
ParamPanel::ParamPanel()
: TimeBasedPanel(QStringLiteral("ParamPanel"))
{
NodeParamView *view = new NodeParamView(this);
connect(view, &NodeParamView::FocusedNodeChanged, this,
&ParamPanel::FocusedNodeChanged);
connect(view, &NodeParamView::SelectedNodesChanged, this,
&ParamPanel::SelectedNodesChanged);
connect(view, &NodeParamView::RequestViewerToStartEditingText, this,
&ParamPanel::RequestViewerToStartEditingText);
connect(this, &ParamPanel::shown, view, &NodeParamView::UpdateElementY);
SetTimeBasedWidget(view);
Retranslate();
}
void ParamPanel::DeleteSelected()
{
static_cast<NodeParamView*>(GetTimeBasedWidget())->DeleteSelected();
static_cast<NodeParamView *>(GetTimeBasedWidget())->DeleteSelected();
}
void ParamPanel::SelectAll()
{
static_cast<NodeParamView*>(GetTimeBasedWidget())->SelectAll();
static_cast<NodeParamView *>(GetTimeBasedWidget())->SelectAll();
}
void ParamPanel::DeselectAll()
{
static_cast<NodeParamView*>(GetTimeBasedWidget())->DeselectAll();
static_cast<NodeParamView *>(GetTimeBasedWidget())->DeselectAll();
}
void ParamPanel::SetContexts(const QVector<Node *> &contexts)
{
static_cast<NodeParamView*>(GetTimeBasedWidget())->SetContexts(contexts);
static_cast<NodeParamView *>(GetTimeBasedWidget())->SetContexts(contexts);
}
void ParamPanel::Retranslate()
{
SetTitle(tr("Parameter Editor"));
SetTitle(tr("Parameter Editor"));
}
}