@@ -472,7 +472,8 @@ void QgsAttributeTypeDialog::setIndex( int index, QgsVectorLayer::EditType editT
472
472
473
473
QString text;
474
474
// calculate min and max for range for this field
475
- if ( mLayer ->pendingFields ()[index ].type () == QVariant::Int )
475
+ if ( mLayer ->pendingFields ()[index ].type () == QVariant::Int
476
+ || mLayer ->pendingFields ()[index ].type () == QVariant::LongLong )
476
477
{
477
478
rangeWidget->clear ();
478
479
rangeWidget->addItems ( QStringList () << tr ( " Editable" ) << tr ( " Slider" ) << tr ( " Dial" ) );
@@ -553,7 +554,8 @@ void QgsAttributeTypeDialog::setIndex( int index, QgsVectorLayer::EditType editT
553
554
case QgsVectorLayer::SliderRange:
554
555
case QgsVectorLayer::DialRange:
555
556
{
556
- if ( mLayer ->pendingFields ()[mIndex ].type () != QVariant::Int )
557
+ if ( mLayer ->pendingFields ()[mIndex ].type () != QVariant::Int
558
+ || mLayer ->pendingFields ()[mIndex ].type () != QVariant::LongLong )
557
559
{
558
560
minimumSpinBox->setValue ( mRangeData .mMin .toInt () );
559
561
maximumSpinBox->setValue ( mRangeData .mMax .toInt () );
@@ -635,7 +637,8 @@ void QgsAttributeTypeDialog::setStackPage( int index )
635
637
{
636
638
case 2 :
637
639
if ( mLayer ->pendingFields ()[mIndex ].type () != QVariant::Double &&
638
- mLayer ->pendingFields ()[mIndex ].type () != QVariant::Int )
640
+ mLayer ->pendingFields ()[mIndex ].type () != QVariant::Int &&
641
+ mLayer ->pendingFields ()[mIndex ].type () != QVariant::LongLong )
639
642
{
640
643
okDisabled = true ;
641
644
}
@@ -742,7 +745,8 @@ void QgsAttributeTypeDialog::accept()
742
745
break ;
743
746
case 2 :
744
747
// store range data
745
- if ( mLayer ->pendingFields ()[mIndex ].type () == QVariant::Int )
748
+ if ( mLayer ->pendingFields ()[mIndex ].type () == QVariant::Int
749
+ || mLayer ->pendingFields ()[mIndex ].type () == QVariant::LongLong )
746
750
{
747
751
mRangeData = QgsVectorLayer::RangeData ( minimumSpinBox->value (),
748
752
maximumSpinBox->value (),
0 commit comments