Gui: Qt6 port
* QString::indexOf() is now marked as [[nodiscard]] * Replace deprecated methods of QMessageBox * QMouseEvent::globalPos() is deprecated, use globalPosition().toPoint() * QWidget::enterEvent() requires a QEnterEvent as argument * QLibraryInfo::location() is deprecated, use path() * QVariant::Type is deprecated, use QMetaType::Type * QVariant::canConvert(int) is deprecated, use QVariant::canConvert(QMetaType) or QVariant::canConvert<T>() * QMessageBox::standardIcon is deprecated, use QStyle::standardIcon() * Replace deprecated method QMessageBox::question(), ... * QApplication::fontMetrics() is deprecated * QDropEvent::mouseButtons() is deprecated, use buttons() * QDropEvent::keyboardModifiers() is deprecated, use modifiers() * Constructor of QFontDatabase is deprecated, use static methods instead * Qt::AA_DisableHighDpiScaling is deprecated * Qt::AA_EnableHighDpiScaling is deprecated * Qt::AA_UseHighDpiPixmaps is deprecated
This commit is contained in:
@@ -82,7 +82,7 @@ bool PropertyModel::setData(const QModelIndex& index, const QVariant & value, in
|
||||
if (role == Qt::EditRole) {
|
||||
auto item = static_cast<PropertyItem*>(index.internalPointer());
|
||||
QVariant data = item->data(index.column(), role);
|
||||
if (data.type() == QVariant::Double && value.type() == QVariant::Double) {
|
||||
if (data.userType() == QMetaType::Double && value.userType() == QMetaType::Double) {
|
||||
// since we store some properties as floats we get some round-off
|
||||
// errors here. Thus, we use an epsilon here.
|
||||
// NOTE: Since 0.14 PropertyFloat uses double precision, so this is maybe unnecessary now?
|
||||
|
||||
Reference in New Issue
Block a user