Commit Graph

160 Commits

Author SHA1 Message Date
Roman Telezhynskyi
35dee8dafb Refactoring. Treat waitForFinished more carefully. Use QScopedPointer for
pointer to QProcess.

--HG--
branch : develop
2016-07-30 18:17:43 +03:00
Roman Telezhynskyi
fa2e0b13d0 Check if QProcess::waitForFinished was called after a process was finished.
According to documentation QProcess::waitForFinished returns true if the process
finished; otherwise returns false (if the operation timed out, if an error
occurred, or if this QProcess is already finished). This last case is seems like
importnant in this case.

--HG--
branch : develop
2016-07-30 17:42:53 +03:00
Roman Telezhynskyi
bedce69143 Show file name i the error message.
--HG--
branch : develop
2016-07-28 12:44:14 +03:00
Roman Telezhynskyi
01be3c5181 Try find more about error: "Cannot open %file for input" how was suggested on
stackoverflow.

--HG--
branch : develop
2016-07-28 12:02:28 +03:00
Roman Telezhynskyi
e5cbf86ef2 Tring restore bitbucket pipeline. Fixing locale is wrong way. Try get error
sting about copying.

--HG--
branch : develop
2016-07-28 11:38:30 +03:00
Roman Telezhynskyi
b5457867e5 Try be more verbose when copy test files.
--HG--
branch : develop
2016-07-25 20:01:19 +03:00
Roman Telezhynskyi
c793f869e5 More warnings in AbstractTest::CopyRecursively. Do copy files before all test
run.

--HG--
branch : develop
2016-07-25 18:25:13 +03:00
Roman Telezhynskyi
9375e0319d As part of testing make all compiler warnings treat as errors.
Added new CONFIG option "checkWarnings".

--HG--
branch : develop
2016-07-20 15:40:33 +03:00
Roman Telezhynskyi
1bffa92127 Using QLatin1String instead of QLatin1Literal.
QLatin1Literal is just a typedef of QLatin1String lefter for compatibility with
Qt 4.x.

--HG--
branch : develop
2016-07-20 11:39:15 +03:00
Roman Telezhynskyi
8a8f63e88e Resolved issue #519. Error: Crash with Union tool.
--HG--
branch : develop
2016-06-30 16:02:59 +03:00
Valentina Zhuravska
15145fd10a Added tests for VToolLineIntersectAxis::FindPoint and VToolTriangle::FindPoint.
--HG--
branch : feature
2016-06-28 05:13:26 +03:00
Roman Telezhynskyi
7eaadf1761 Resolved issue #480. New tool: Midpoint between two points.
--HG--
branch : develop
2016-06-23 20:20:21 +03:00
Roman Telezhynskyi
c3ddf18063 Fixed broken path to vit file.
--HG--
branch : develop
2016-06-17 16:18:44 +03:00
Roman Telezhynskyi
2744f89ff3 Fix broken test.
--HG--
branch : develop
2016-06-17 16:03:52 +03:00
Roman Telezhynskyi
0be2cd2b17 Close #513. Trousers pattern.
The pattern added to collection.

--HG--
branch : develop
2016-06-17 15:54:37 +03:00
Roman Telezhynskyi
3c5d6aa500 Fixed issue #515. Seam allowance wrong way.
--HG--
branch : develop
2016-06-17 15:39:54 +03:00
Roman Telezhynskyi
972dd36fcf Redesign printing system. ref #494. Printing is not working.
Made complete redesign of printing code. Now the code check printer's dpi and
calculate  scale factor. Instead of printing with QImage buffer the code print
directly on printer. Help avoid limitations of QImage class.

Also removed menu option "Save as PDF". The option duplicate option "Export As"
and also mislead a user about purpose of option "Print preview".

--HG--
branch : develop
2016-06-15 13:55:43 +03:00
Roman Telezhynskyi
17bc0c3ff0 New test case. Male shirt.
--HG--
branch : develop
2016-06-05 16:54:39 +03:00
Valentina Zhuravska
096976b682 Better to use ifndef Q_OS_WIN.
--HG--
branch : feature
2016-06-01 21:59:34 +03:00
Valentina Zhuravska
12ae761527 Merge with develop
--HG--
branch : feature
2016-06-01 20:44:50 +03:00
Valentina Zhuravska
bcdedaf659 Fixed TST_VMeasurements tests in Windows.
--HG--
branch : feature
2016-06-01 20:14:42 +03:00
Valentina Zhuravska
8c5f14937d Fixed TST_VPoster::BigPoster test in Windows.
--HG--
branch : feature
2016-06-01 17:40:01 +03:00
Roman Telezhynskyi
ce720450f0 Fixed issue #493. Error in seam allowance drawing.
(grafted from 776b5b71c7e5aa6b9755c280f3f4e20e159c8150)

--HG--
branch : develop
2016-05-26 11:26:54 +03:00
Roman Telezhynskyi
73ad3a8376 Fixed issue with method IsPointOnLineSegment.
--HG--
branch : develop
2016-05-25 13:55:15 +03:00
Roman Telezhynskyi
b820d5a6ea Fixed issue #491. Valentina doesn't update fractional separator.
(grafted from c658843945e37cd7f1d3e4e0ca4967d7a01b1c4d)

--HG--
branch : develop
2016-05-23 18:23:39 +03:00
Valentina Zhuravska
db014092a3 Fixed TST_ValentinaCommandLine tests in Windows.
--HG--
branch : feature
2016-05-19 15:22:27 +03:00
Valentina Zhuravska
fbd5203491 Fixed TST_Misc tests in Windows.
--HG--
branch : feature
2016-05-19 14:56:35 +03:00
Roman Telezhynskyi
60ad8d2fd1 Fixed test. Wrong conversion to QPointF.
--HG--
branch : feature
2016-05-19 13:16:33 +03:00
Roman Telezhynskyi
6187f16c6a Refactoring. Use conversion operator for conversion VPointF to QPointF.
--HG--
branch : feature
2016-05-14 22:28:09 +03:00
Roman Telezhynskyi
80b415f258 Merge with develop.
--HG--
branch : feature
2016-05-12 22:52:31 +03:00
Roman Telezhynskyi
637ca7015e Unit test for the issue #485.
--HG--
branch : develop
2016-05-07 16:14:43 +03:00
Curious One
f5f915cbe0 Again, made compilable with msvc by adding compiler directive where necessary...
--HG--
branch : develop
2016-05-04 21:35:35 +10:00
Roman Telezhynskyi
8713c628dc Refactoring VArc and VEllipticalArc classes.
--HG--
branch : feature
2016-04-10 17:40:55 +03:00
Roman Telezhynskyi
1d76a59ae7 Rotation VPointF, VArc, VCubicBezier and VCubicBezierPath.
--HG--
branch : feature
2016-04-10 14:40:04 +03:00
Roman Telezhynskyi
f83c016c54 Updated description measurements N06 and N07. Add new measurements A23 and J10.
(grafted from cf140cecff83698ca48fcf563a5e8a857466f531)

--HG--
branch : develop
2016-04-08 13:21:18 +03:00
Roman Telezhynskyi
9470f76ba9 New method curve length by given point.
--HG--
branch : develop
2016-04-02 14:59:43 +03:00
Roman Telezhynskyi
c99cdb69ec Added new curve path segment variables.
--HG--
branch : develop
2016-04-02 00:15:04 +03:00
Roman Telezhynskyi
be7277eeba Refactoring. Use more safe function VFuzzyComparePossibleNulls.
--HG--
branch : develop
2016-03-23 16:09:30 +02:00
Roman Telezhynskyi
910dadc871 New test. Check if epsilon value in method GetParmT() is enough for calculation.
--HG--
branch : develop
2016-03-23 13:23:03 +02:00
Roman Telezhynskyi
505cec891d Several bug fixes.
--HG--
branch : feature
2016-03-19 16:20:09 +02:00
Roman Telezhynskyi
ba5ac8a04b Fixed issue #458. Issue with segment of curve.
(grafted from 4d70b5b863bcad171e8185265cdcf4e177c5c90d)

--HG--
branch : develop
2016-03-15 17:38:07 +02:00
Roman Telezhynskyi
55400c5a73 Fixed disappearing curve if start and finish points of a segment are equal.
(grafted from 36e5071fc3f50bb7f5261d48dae2a2fe961993a2)

--HG--
branch : develop
2016-03-10 20:18:26 +02:00
Roman Telezhynskyi
8b0026709f Improved the comment.
(grafted from 0daf799ddd8466ddbf7e4c29954990f68895269b)

--HG--
branch : develop
2016-03-10 09:42:21 +02:00
Roman Telezhynskyi
7ec2e6d988 Fixed bug case where an open equidistant point is too far from a main path.
(grafted from cd63aeaa6228a84e977e06e9d006705103eb6c35)

--HG--
branch : develop
2016-03-10 09:42:09 +02:00
Roman Telezhynskyi
40436a5c57 Successfull build, bugs was not fixed.
--HG--
branch : feature
2016-03-04 18:08:29 +02:00
Roman Telezhynskyi
018fd88f25 GCC warnings. Fixed broken tests.
--HG--
branch : develop
2016-02-28 22:00:45 +02:00
Roman Telezhynskyi
33b6256896 Merge with feature. A simple curve controled by formulas.
--HG--
branch : develop
2016-02-28 21:49:52 +02:00
Valentina Zhuravska
088f0a6987 Changed QString("%1").arg() to QString().number() in VEllipticalArc
--HG--
branch : feature
2016-02-28 21:20:33 +02:00
Roman Telezhynskyi
8ec60b22b1 Test the C locale options. Better be sure that the C locale have not thousand
separator.

--HG--
branch : feature
2016-02-28 19:58:41 +02:00
Valentina Zhuravska
e1981a56c5 Fixed tests for VEllipticalArc
--HG--
branch : feature
2016-02-28 17:51:27 +02:00