Gui editors: Use float for zoom precision (#6008)

This fixes build errors with casts.
This commit is contained in:
David CARLIER
2021-05-15 16:17:40 +01:00
committed by GitHub
parent 4589004e6c
commit e9f264e37f
8 changed files with 15 additions and 15 deletions

View File

@@ -174,7 +174,7 @@ private:
ComboBoxModel m_zoomingYModel;
ComboBoxModel m_quantizeModel;
static const QVector<double> m_zoomXLevels;
static const QVector<float> m_zoomXLevels;
FloatModel * m_tensionModel;

View File

@@ -346,8 +346,8 @@ private:
ComboBoxModel m_chordModel;
ComboBoxModel m_snapModel;
static const QVector<double> m_zoomLevels;
static const QVector<double> m_zoomYLevels;
static const QVector<float> m_zoomLevels;
static const QVector<float> m_zoomYLevels;
Pattern* m_pattern;
NoteVector m_ghostNotes;

View File

@@ -37,7 +37,7 @@ public:
PositionLine(QWidget* parent);
public slots:
void zoomChange(double zoom);
void zoomChange(float zoom);
private:
void paintEvent(QPaintEvent* pe) override;
@@ -46,4 +46,4 @@ private:
QColor m_lineColor;
};
#endif
#endif

View File

@@ -141,7 +141,7 @@ private:
ComboBoxModel* m_snappingModel;
bool m_proportionalSnap;
static const QVector<double> m_zoomLevels;
static const QVector<float> m_zoomLevels;
bool m_scrollBack;
bool m_smoothScroll;
@@ -161,7 +161,7 @@ private:
friend class SongEditorWindow;
signals:
void zoomingValueChanged( double );
void zoomingValueChanged( float );
} ;