mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Ride-Details - 'Extra' Tab - Text Field 'Read Only' only
... be less restrictive for 'TextEdit' and 'LineEdit' field, jus set 'Read Only' to still allow mainly scrolling (which is otherwise blocked) ... mainly for 'Change Log' and 'Calendar Text'
This commit is contained in:
@@ -178,8 +178,18 @@ RideMetadata::setExtraTab()
|
||||
|
||||
// since we show EVERYTHING, don't let the user edit them
|
||||
// we might get more selective later?
|
||||
field->widget->setEnabled(false);
|
||||
|
||||
// set Text Field to 'Read Only' to still enable scrolling,...
|
||||
QTextEdit* textEdit = dynamic_cast<QTextEdit*> (field->widget);
|
||||
if (textEdit) textEdit->setReadOnly(true);
|
||||
else {
|
||||
QLineEdit* lineEdit = dynamic_cast<QLineEdit*> (field->widget);
|
||||
if (lineEdit) lineEdit->setReadOnly(true);
|
||||
else field->widget->setEnabled(false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user