change: change code style to Linux style except indent.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user