Gui editors: Use float for zoom precision (#6008)
This fixes build errors with casts.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user