mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1183 UAVObjectBrowser - fixed issue in newly added hex string editor
This commit is contained in:
parent
d8e1d849f5
commit
ae3d2f41b8
@ -101,7 +101,7 @@ public:
|
|||||||
|
|
||||||
void apply()
|
void apply()
|
||||||
{
|
{
|
||||||
int value = data(dataColumn).toInt();
|
int value = data().toInt();
|
||||||
QStringList options = m_field->getOptions();
|
QStringList options = m_field->getOptions();
|
||||||
|
|
||||||
m_field->setValue(options[value], m_index);
|
m_field->setValue(options[value], m_index);
|
||||||
@ -231,7 +231,7 @@ public:
|
|||||||
|
|
||||||
void apply()
|
void apply()
|
||||||
{
|
{
|
||||||
m_field->setValue(data(dataColumn).toInt(), m_index);
|
m_field->setValue(data().toInt(), m_index);
|
||||||
setChanged(false);
|
setChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ public:
|
|||||||
|
|
||||||
void apply()
|
void apply()
|
||||||
{
|
{
|
||||||
m_field->setValue(data(dataColumn).toDouble(), m_index);
|
m_field->setValue(data().toDouble(), m_index);
|
||||||
setChanged(false);
|
setChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,13 +364,13 @@ public:
|
|||||||
|
|
||||||
void setData(QVariant value, int column)
|
void setData(QVariant value, int column)
|
||||||
{
|
{
|
||||||
setChanged(m_field->getValue(m_index) != value);
|
setChanged(m_field->getValue(m_index) != toUInt(value));
|
||||||
TreeItem::setData(value, column);
|
TreeItem::setData(value, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
void apply()
|
void apply()
|
||||||
{
|
{
|
||||||
m_field->setValue(toUInt(data(dataColumn)), m_index);
|
m_field->setValue(toUInt(data()), m_index);
|
||||||
setChanged(false);
|
setChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user