|
|
@ -2,6 +2,8 @@
|
|
|
|
#include "util.hpp"
|
|
|
|
#include "util.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
#include <climits>
|
|
|
|
|
|
|
|
#include <cfloat>
|
|
|
|
|
|
|
|
|
|
|
|
#include <QUndoStack>
|
|
|
|
#include <QUndoStack>
|
|
|
|
#include <QMetaProperty>
|
|
|
|
#include <QMetaProperty>
|
|
|
@ -157,16 +159,22 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO
|
|
|
|
return new QLineEdit(parent);
|
|
|
|
return new QLineEdit(parent);
|
|
|
|
|
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Integer:
|
|
|
|
case CSMWorld::ColumnBase::Display_Integer:
|
|
|
|
|
|
|
|
{
|
|
|
|
return new QSpinBox(parent);
|
|
|
|
QSpinBox *sb = new QSpinBox(parent);
|
|
|
|
|
|
|
|
sb->setRange(INT_MIN, INT_MAX);
|
|
|
|
|
|
|
|
return sb;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Var:
|
|
|
|
case CSMWorld::ColumnBase::Display_Var:
|
|
|
|
|
|
|
|
|
|
|
|
return new QLineEdit(parent);
|
|
|
|
return new QLineEdit(parent);
|
|
|
|
|
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_Float:
|
|
|
|
case CSMWorld::ColumnBase::Display_Float:
|
|
|
|
|
|
|
|
{
|
|
|
|
return new QDoubleSpinBox(parent);
|
|
|
|
QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
|
|
|
|
|
|
|
|
dsb->setRange(FLT_MIN, FLT_MAX);
|
|
|
|
|
|
|
|
return dsb;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case CSMWorld::ColumnBase::Display_LongString:
|
|
|
|
case CSMWorld::ColumnBase::Display_LongString:
|
|
|
|
{
|
|
|
|
{
|
|
|
|