File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ void QgsAddAttrDialog::on_mTypeBox_currentIndexChanged( int idx )
62
62
mLength ->setMinimum ( mTypeBox ->itemData ( idx, Qt::UserRole + 2 ).toInt () );
63
63
mLength ->setMaximum ( mTypeBox ->itemData ( idx, Qt::UserRole + 3 ).toInt () );
64
64
mLength ->setVisible ( mLength ->minimum () < mLength ->maximum () );
65
+ mLengthLabel ->setVisible ( mLength ->minimum () < mLength ->maximum () );
65
66
if ( mLength ->value () < mLength ->minimum () )
66
67
mLength ->setValue ( mLength ->minimum () );
67
68
if ( mLength ->value () > mLength ->maximum () )
@@ -80,6 +81,7 @@ void QgsAddAttrDialog::setPrecisionMinMax()
80
81
int minPrecType = mTypeBox ->itemData ( idx, Qt::UserRole + 4 ).toInt ();
81
82
int maxPrecType = mTypeBox ->itemData ( idx, Qt::UserRole + 5 ).toInt ();
82
83
mPrec ->setVisible ( minPrecType < maxPrecType );
84
+ mPrecLabel ->setVisible ( minPrecType < maxPrecType );
83
85
mPrec ->setMinimum ( minPrecType );
84
86
mPrec ->setMaximum ( qMax ( minPrecType, qMin ( maxPrecType, mLength ->value () ) ) );
85
87
}
Original file line number Diff line number Diff line change 7
7
<x >0</x >
8
8
<y >0</y >
9
9
<width >267</width >
10
- <height >235 </height >
10
+ <height >267 </height >
11
11
</rect >
12
12
</property >
13
13
<property name =" windowTitle" >
67
67
</widget >
68
68
</item >
69
69
<item row =" 4" column =" 0" >
70
- <widget class =" QLabel" name =" textLabel2_2 " >
70
+ <widget class =" QLabel" name =" mLengthLabel " >
71
71
<property name =" text" >
72
72
<string >Width</string >
73
73
</property >
80
80
<widget class =" QSpinBox" name =" mLength" />
81
81
</item >
82
82
<item row =" 5" column =" 0" >
83
- <widget class =" QLabel" name =" textLabel2_3 " >
83
+ <widget class =" QLabel" name =" mPrecLabel " >
84
84
<property name =" text" >
85
85
<string >Precision</string >
86
86
</property >
You can’t perform that action at this time.
0 commit comments