mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 05:27:57 +00:00
CurveEditor: Use std::array where applicable
Allows simplifying how redo/undo data gets moved around and also eliminates a few hardcoded magic values for sizes.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "EditorWidget.hpp"
|
||||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
@@ -15,8 +17,8 @@ class CurveView : public QWidget {
|
||||
friend class CurveControls;
|
||||
amuse::ObjToken<ProjectModel::CurveNode> m_node;
|
||||
QFont m_gridFont;
|
||||
QStaticText m_percentTexts[11];
|
||||
QStaticText m_percentTextsCenter[11];
|
||||
std::array<QStaticText, 11> m_percentTexts;
|
||||
std::array<QStaticText, 11> m_percentTextsCenter;
|
||||
CurveEditor* getEditor() const;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user