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
+24 -16
View File
@@ -20,26 +20,34 @@
#include "node.h"
namespace olive {
NodePanel::NodePanel() :
PanelWidget(QStringLiteral("NodePanel"))
namespace olive
{
node_widget_ = new NodeWidget(this);
connect(this, &NodePanel::shown, node_widget_->view(), &NodeView::CenterOnItemsBoundingRect);
connect(node_widget_->view(), &NodeView::NodesSelected, this, &NodePanel::NodesSelected);
connect(node_widget_->view(), &NodeView::NodesDeselected, this, &NodePanel::NodesDeselected);
connect(node_widget_->view(), &NodeView::NodeSelectionChanged, this, &NodePanel::NodeSelectionChanged);
connect(node_widget_->view(), &NodeView::NodeSelectionChangedWithContexts, this, &NodePanel::NodeSelectionChangedWithContexts);
connect(node_widget_->view(), &NodeView::NodeGroupOpened, this, &NodePanel::NodeGroupOpened);
connect(node_widget_->view(), &NodeView::NodeGroupClosed, this, &NodePanel::NodeGroupClosed);
NodePanel::NodePanel()
: PanelWidget(QStringLiteral("NodePanel"))
{
node_widget_ = new NodeWidget(this);
connect(this, &NodePanel::shown, node_widget_->view(),
&NodeView::CenterOnItemsBoundingRect);
// Set it as the main widget of this panel
SetWidgetWithPadding(node_widget_);
connect(node_widget_->view(), &NodeView::NodesSelected, this,
&NodePanel::NodesSelected);
connect(node_widget_->view(), &NodeView::NodesDeselected, this,
&NodePanel::NodesDeselected);
connect(node_widget_->view(), &NodeView::NodeSelectionChanged, this,
&NodePanel::NodeSelectionChanged);
connect(node_widget_->view(), &NodeView::NodeSelectionChangedWithContexts,
this, &NodePanel::NodeSelectionChangedWithContexts);
connect(node_widget_->view(), &NodeView::NodeGroupOpened, this,
&NodePanel::NodeGroupOpened);
connect(node_widget_->view(), &NodeView::NodeGroupClosed, this,
&NodePanel::NodeGroupClosed);
// Set strings
Retranslate();
// Set it as the main widget of this panel
SetWidgetWithPadding(node_widget_);
// Set strings
Retranslate();
}
}