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
@@ -27,51 +27,46 @@
#include "node/param.h"
namespace olive {
class NodeParamViewArrayButton : public QPushButton
namespace olive
{
Q_OBJECT
public:
enum Type {
kAdd,
kRemove
};
NodeParamViewArrayButton(Type type, QWidget* parent = nullptr);
class NodeParamViewArrayButton : public QPushButton {
Q_OBJECT
public:
enum Type { kAdd, kRemove };
NodeParamViewArrayButton(Type type, QWidget *parent = nullptr);
protected:
virtual void changeEvent(QEvent* event) override;
virtual void changeEvent(QEvent *event) override;
private:
void Retranslate();
Type type_;
void Retranslate();
Type type_;
};
class NodeParamViewArrayWidget : public QWidget
{
Q_OBJECT
class NodeParamViewArrayWidget : public QWidget {
Q_OBJECT
public:
NodeParamViewArrayWidget(Node* node, const QString& input, QWidget* parent = nullptr);
NodeParamViewArrayWidget(Node *node, const QString &input,
QWidget *parent = nullptr);
signals:
void DoubleClicked();
void DoubleClicked();
protected:
virtual void mouseDoubleClickEvent(QMouseEvent* event) override;
virtual void mouseDoubleClickEvent(QMouseEvent *event) override;
private:
Node* node_;
Node *node_;
QString input_;
QString input_;
QLabel* count_lbl_;
QLabel *count_lbl_;
private slots:
void UpdateCounter(const QString &input, int old_size, int new_size);
void UpdateCounter(const QString &input, int old_size, int new_size);
};
}