forked from qt-creator/qt-creator
Debugger: Add special widgets for editing watch values.
Create delegate widgets with validation for bool/int/float types, using a QVariant-type modelData property. Also fix register editing to be validated for quint64 values and editing longer values as hex bigints. Anything else is not editable.
This commit is contained in:
@@ -580,9 +580,14 @@ bool isSymbianIntType(const QByteArray &type)
|
||||
return type == "TInt" || type == "TBool";
|
||||
}
|
||||
|
||||
bool isFloatType(const QByteArray &type)
|
||||
{
|
||||
return type == "float" || type == "double" || type == "qreal";
|
||||
}
|
||||
|
||||
bool isIntOrFloatType(const QByteArray &type)
|
||||
{
|
||||
return isIntType(type) || type == "float" || type == "double";
|
||||
return isIntType(type) || isFloatType(type);
|
||||
}
|
||||
|
||||
GuessChildrenResult guessChildren(const QByteArray &type)
|
||||
|
||||
Reference in New Issue
Block a user