Skip to content

Commit ed13470

Browse files
committed
change default values for notches
1 parent 2c4a74e commit ed13470

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/libs/vmisc/vcommonsettings.cpp‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <QDate>
5757
#include <QDir>
5858
#include <QFont>
59+
#include <QtGlobal>
5960
#include <QLocale>
6061
#include <QMessageLogger>
6162
#include <QString>
@@ -1657,14 +1658,14 @@ qreal VCommonSettings::getDefaultNotchLength() const
16571658
switch (units)
16581659
{
16591660
case Unit::Mm:
1660-
maxValue = 40;
1661+
maxValue = 12.5;
16611662
break;
16621663
case Unit::Inch:
1663-
maxValue = 1.5;
1664+
maxValue = .5;
16641665
break;
16651666
default:
16661667
case Unit::Cm:
1667-
maxValue = 4;
1668+
maxValue = 1.25;
16681669
break;
16691670
}
16701671
return value(settingDefaultNotchLength, maxValue).toReal();
@@ -1686,14 +1687,14 @@ qreal VCommonSettings::getDefaultNotchWidth() const
16861687
switch (units)
16871688
{
16881689
case Unit::Mm:
1689-
maxValue = 12.50;
1690+
maxValue = 5.0;
16901691
break;
16911692
case Unit::Inch:
1692-
maxValue = 0.50;
1693+
maxValue = 0.25;
16931694
break;
16941695
default:
16951696
case Unit::Cm:
1696-
maxValue = 1.25;
1697+
maxValue = .5;
16971698
break;
16981699
}
16991700
return value(settingDefaultNotchWidth, maxValue).toReal();

0 commit comments

Comments
 (0)