Allow smaller values and increments for editor camera speed, allow custom speed values
This commit is contained in:
@@ -181,7 +181,8 @@ void CViewportTitleDlg::SetupCameraDropdownMenu()
|
||||
auto comboBoxTextChanged = static_cast<void (QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged);
|
||||
|
||||
SetSpeedComboBox(cameraMoveSpeed);
|
||||
m_cameraSpeed->setInsertPolicy(QComboBox::NoInsert);
|
||||
m_cameraSpeed->setInsertPolicy(QComboBox::InsertAtBottom);
|
||||
m_cameraSpeed->setDuplicatesEnabled(false);
|
||||
connect(m_cameraSpeed, comboBoxTextChanged, this, &CViewportTitleDlg::OnUpdateMoveSpeedText);
|
||||
connect(m_cameraSpeed->lineEdit(), &QLineEdit::returnPressed, this, &CViewportTitleDlg::OnSpeedComboBoxEnter);
|
||||
|
||||
|
||||
@@ -117,11 +117,11 @@ protected:
|
||||
// Speed combobox/lineEdit settings
|
||||
double m_minSpeed = 0.01;
|
||||
double m_maxSpeed = 100.0;
|
||||
double m_speedStep = 0.01;
|
||||
double m_speedStep = 0.001;
|
||||
int m_numDecimals = 3;
|
||||
|
||||
// Speed presets
|
||||
float m_speedPresetValues[3] = { 0.1f, 1.0f, 10.0f };
|
||||
float m_speedPresetValues[4] = { 0.01f, 0.1f, 1.0f, 10.0f };
|
||||
|
||||
double m_fieldWidthMultiplier = 1.8;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user