Commit Graph

3880 Commits

Author SHA1 Message Date
Roman Telezhynskyi
8e7ea0f45f Cppcheck warning.
(grafted from 5fb12906763ccf0b28ee1e2037196556fb9297eb)

--HG--
branch : develop
2017-06-05 18:25:36 +03:00
Roman Telezhynskyi
7a9b2e34bd Changed default behaviour if path to multisize measurements or templates doesn't
exist.

If the path doesn't exist Valentina will create and return path to user
localized default folder.
(grafted from 722c37544c26fe3f406d222b7f344ddf7b3602a0)

--HG--
branch : develop
2017-06-05 17:52:42 +03:00
Roman Telezhynskyi
65c98f6a39 Do not force copying translations if build in debug mode.
--HG--
branch : develop
2017-06-05 16:21:35 +03:00
Roman Telezhynskyi
9be7403919 Fixed issue #702. Valentina produces broken shortcut (.lnk) files on Windows.
(grafted from 1dd5ef5924bf7d78c5c3eeae884e7f4e41bb688d)

--HG--
branch : develop
2017-06-05 16:18:38 +03:00
Roman Telezhynskyi
4461caaf0f Fixed issue #698. Problem typing in new axis point for new piece.
(grafted from 8ad30021d46f5ddcd479b7ec1a9279a5185a2578)

--HG--
branch : develop
2017-06-02 09:23:29 +03:00
Roman Telezhynskyi
f65ff76dd4 Disable some tests on x86_64.
--HG--
branch : develop
2017-06-01 15:04:29 +03:00
Roman Telezhynskyi
bfd2620fad Next try to fix problem with tests.
Because different compilers and even different version from same vendor may
produce little bit different result this cause of test fails because it expect
too accurate result. We don't need such accuracy and can use variable
VGObject::accuracyPointOnLine to compare two points.

--HG--
branch : develop
2017-06-01 13:04:25 +03:00
Roman Telezhynskyi
cc5641a15c Added gcc’s 4.9.0 Undefined Behavior Sanitizer (ubsan).
--HG--
branch : develop
2017-06-01 10:14:17 +03:00
Roman Telezhynskyi
37a28a4629 Fixed issue #697. Incomplete Internal Path for Waist Dart.
(grafted from 1f17c5a2e540f1b1c27dab709bae1570fb170ed9)

--HG--
branch : develop
2017-05-31 10:55:39 +03:00
Roman Telezhynskyi
bd72aa29cc Try to fix tests.
--HG--
branch : develop
2017-05-30 20:56:59 +03:00
Roman Telezhynskyi
f0bceec6ea Cppcheck warning.
--HG--
branch : develop
2017-05-30 20:09:34 +03:00
Roman Telezhynskyi
7e064f80c5 Thrown away code for support Qt < 5.2.
--HG--
branch : develop
2017-05-30 19:52:38 +03:00
Roman Telezhynskyi
2dcfe1c84b Since Q5.4 available support C++14.
--HG--
branch : develop
2017-05-30 18:54:54 +03:00
Roman Telezhynskyi
965d908663 GCC warnings.
--HG--
branch : develop
2017-05-30 18:44:16 +03:00
Roman Telezhynskyi
2921dbf2a3 Move dialog Piece path.
--HG--
branch : develop
2017-05-30 11:56:16 +03:00
Roman Telezhynskyi
fb64c8d2e8 Remeber size of tool Seam allowance dialog between sessions. ref #683.
--HG--
branch : develop
2017-05-30 11:47:27 +03:00
Roman Telezhynskyi
4d1c15c2d5 Fixed issue #696. Wrong grainline position on layout.
(grafted from 23e7ca4bff38c47729324aaa081d601351844035)

--HG--
branch : develop
2017-05-29 17:45:55 +03:00
Roman Telezhynskyi
9287acf90e Add Valentina version info inside each file before saving.
Many misunderstand purpose of tag "version" and think that this tag contains
information about the Valentina version. More info in the comment should help.

--HG--
branch : develop
2017-05-29 16:33:36 +03:00
Roman Telezhynskyi
39a7fcd743 Lupdate.
--HG--
branch : develop
2017-05-26 20:52:25 +03:00
Roman Telezhynskyi
2efec7a1ed Added tooltip for tab Passmark.
Explained meaning of check box "Show the second passmark on seam line".
(grafted from d144cddaa4decf56cc5ff85748251b918ae407b9)

--HG--
branch : develop
2017-05-26 19:49:06 +03:00
Roman Telezhynskyi
6e1eabaf29 Tab Pins moved to be second in the list after tab Paths.
(grafted from 6dade874f3c6417db907d0c00760006aba4bd702)

--HG--
branch : develop
2017-05-26 19:39:42 +03:00
Roman Telezhynskyi
f9060f1bb7 Fixed bug in dialog Internal Piece Path.
Value from the field After rewrited data in the field Before.
(grafted from bf1336d102f09e2efef6afe4db87a0692df44b86)

--HG--
branch : develop
2017-05-26 19:27:11 +03:00
Roman Telezhynskyi
4d262cba26 Fixed bug in Tape app.
Tape showed birth date in wrong locale.
(grafted from a97fb493ae6c7d6f2a6645913dcc4db16219efac)

--HG--
branch : develop
2017-05-23 16:01:41 +03:00
Roman Telezhynskyi
8d10ff5234 Fixed issue #688. Difficult to enter numbers in Tape.
(grafted from 4c3cac37331437d3a6e9764d38351156c82fd731)

--HG--
branch : develop
2017-05-23 10:45:04 +03:00
Roman Telezhynskyi
3a782f8fa7 Fixed issue #689. Grainline default values swapped around.
(grafted from 7730e53eed5099c5cdd5d0eb5abf2550b83b7805)

--HG--
branch : develop
2017-05-21 20:54:35 +03:00
Roman Telezhynskyi
780ce623ab Fixed issue #687. Wrong seam allowance.
--HG--
branch : develop
2017-05-19 10:57:58 +03:00
Roman Telezhynskyi
cc83d9602a Fixed issue #686. Seam allowance not placed correctly.
--HG--
branch : develop
2017-05-18 15:10:05 +03:00
Roman Telezhynskyi
b05b5bad8c Fixed issue #685. Bug report: CSV exports as "CVS".
--HG--
branch : develop
2017-05-17 07:57:46 +03:00
Roman Telezhynskyi
c7ad55274f Read default value of option Hide main path from settings. ref #684.
--HG--
branch : develop
2017-05-16 16:22:12 +03:00
Roman Telezhynskyi
28fce33530 Clang warning.
--HG--
branch : develop
2017-05-16 16:13:03 +03:00
Roman Telezhynskyi
5ed69ab633 SonarQube warnings.
--HG--
branch : develop
2017-05-16 16:09:11 +03:00
Roman Telezhynskyi
d38681b853 Cppcheck warning.
--HG--
branch : develop
2017-05-16 15:35:50 +03:00
Roman Telezhynskyi
91a75f6f01 Fix layout internal path support of pen style.
--HG--
branch : develop
2017-05-16 15:19:27 +03:00
Roman Telezhynskyi
56dd8ef3b6 Resolved issue #684. Proposal: Add option to only show outer edges on detail.
--HG--
branch : develop
2017-05-16 15:16:50 +03:00
Roman Telezhynskyi
13a93ef5df Fix internal path support of pen style.
--HG--
branch : develop
2017-05-16 13:47:36 +03:00
Roman Telezhynskyi
32a16890a7 Resolved issue #681. Enhance feature: Dashed line options for curves, arcs, etc.
--HG--
branch : develop
2017-05-16 13:07:53 +03:00
Roman Telezhynskyi
037fe89e27 Resolved issue #683. Tool Seam allowance's dialog is off screen on small
resolutions.

--HG--
branch : develop
2017-05-13 11:55:02 +03:00
Roman Telezhynskyi
c02ef13ed4 Suppress warnings inside ui folder.
--HG--
branch : develop
2017-05-12 15:51:44 +03:00
Roman Telezhynskyi
e923234127 SonarQube warnings.
--HG--
branch : develop
2017-05-12 15:48:25 +03:00
Roman Telezhynskyi
7225481091 Resolved issue #682. New feature. Export increments to Excel .csv.
--HG--
branch : develop
2017-05-12 15:09:19 +03:00
Roman Telezhynskyi
5aaeaaf9da SonarQube warnings.
--HG--
branch : develop
2017-05-12 10:15:44 +03:00
Roman Telezhynskyi
34f3737c9e Begin new branch v0.6.0.
--HG--
branch : develop
2017-05-12 08:47:05 +03:00
Roman Telezhynskyi
c280748a10 Disabled several tests due to "undefined behavior" problem. 2017-05-10 17:07:37 +03:00
Roman Telezhynskyi
1cf4e97b7d Clang warnings. 2017-05-10 14:58:17 +03:00
Roman Telezhynskyi
dcf7abed7b Disabled several tests due to "undefined behavior" problem. 2017-05-10 11:50:58 +03:00
Roman Telezhynskyi
e48298ce64 Fix regression. 2017-05-10 09:35:19 +03:00
Roman Telezhynskyi
67a54b8f3d Fix error after merge. 2017-05-09 18:36:39 +03:00
Roman Telezhynskyi
c0d79afb85 Merge with release. 2017-05-09 18:18:31 +03:00
Roman Telezhynskyi
b355f1dbfc Prepare to release 0.5.0. Change version number.
--HG--
branch : release
2017-05-09 16:04:31 +03:00
Roman Telezhynskyi
5f92557609 Fixed issue #679. Second control point at beginning of curved path - bug.
--HG--
branch : release
2017-05-07 08:35:18 +03:00
Roman Telezhynskyi
779796a4f1 Improvements for Valentina's main window.
Set set horizontal stretch to avoid horizontal scrolling for tool box.

--HG--
branch : release
2017-04-29 08:50:49 +03:00
Roman Telezhynskyi
9fd611e2d1 Fixed bug with a grainline.
Grainline arrows were upside down on layout.

--HG--
branch : release
2017-04-28 15:37:31 +03:00
Roman Telezhynskyi
03a9b07eff Fixed issue #673. The Insert Node tool changes Label.
--HG--
branch : release
2017-04-28 09:38:09 +03:00
Roman Telezhynskyi
677ef71626 Added second case when create a passmark for point that lies on line.
--HG--
branch : release
2017-04-27 18:19:23 +03:00
Roman Telezhynskyi
f2f1a681ef Pins should be on top.
--HG--
branch : release
2017-04-27 16:53:18 +03:00
Roman Telezhynskyi
1a2def2bca SonarQube warnings.
--HG--
branch : release
2017-04-27 16:45:29 +03:00
Roman Telezhynskyi
32e3a6340c Fixed issue #671. Weird behaviour of the passmark.
--HG--
branch : release
2017-04-27 16:37:10 +03:00
Roman Telezhynskyi
f990a5726c Refactoring. Join similar parts from methods that update labels. ref #672.
Issue #672 that this part better to refactor to eliminate more issues in future.

--HG--
branch : release
2017-04-27 14:30:20 +03:00
Roman Telezhynskyi
795373e74e Fixed issue #672. Labels are turning oposite directions.
--HG--
branch : release
2017-04-27 13:32:52 +03:00
Roman Telezhynskyi
c9e005c65b Small improvements for passmark.
Added new option that allow localy disable the second passmark on the seam line.

--HG--
branch : release
2017-04-26 11:22:42 +03:00
Roman Telezhynskyi
39a1c50022 Fix bug. Labels created tools from Operation section should be not movable when
use a tool.

--HG--
branch : release
2017-04-26 08:19:39 +03:00
Roman Telezhynskyi
89bf3cc005 Revert previos changes. ref #668.
Do not ignore nodes if a passmark is part of main path.

--HG--
branch : release
2017-04-26 08:07:07 +03:00
Roman Telezhynskyi
585213412c Fix case with custom piece path as part of main path. ref #668.
--HG--
branch : release
2017-04-25 20:48:32 +03:00
Roman Telezhynskyi
b300c2a83a Fix bug with property browser.
Coverity Scan gave bad advise.

--HG--
branch : release
2017-04-25 14:39:08 +03:00
Roman Telezhynskyi
dce880e270 Minor fixes for dialog Piece path.
--HG--
branch : release
2017-04-25 13:55:35 +03:00
Roman Telezhynskyi
7840bf04eb Resolved issue #668. Passmarks on Hems.
--HG--
branch : release
2017-04-25 11:42:08 +03:00
Roman Telezhynskyi
c09f69b320 Fix typo.
--HG--
branch : release
2017-04-24 17:20:15 +03:00
Roman Telezhynskyi
85aca86c85 Fix current index for tab Main path.
--HG--
branch : release
2017-04-24 16:01:50 +03:00
Roman Telezhynskyi
e2f1b87596 Fix typo.
--HG--
branch : release
2017-04-22 17:24:25 +03:00
Roman Telezhynskyi
45ce22d6e3 SonarQube warning.
--HG--
branch : release
2017-04-21 18:01:43 +03:00
Roman Telezhynskyi
7734c0564b Localization improvements.
--HG--
branch : release
2017-04-21 17:28:25 +03:00
Roman Telezhynskyi
07021680a4 Little fix for translation string.
--HG--
branch : release
2017-04-21 13:11:51 +03:00
Roman Telezhynskyi
6c047b140d Resolved issue #666. QDomDocument produces random attribute order.
--HG--
branch : release
2017-04-20 19:01:08 +03:00
Roman Telezhynskyi
b4106f8e5a Improved tip in the Piece path dialog.
--HG--
branch : release
2017-04-20 15:00:37 +03:00
Roman Telezhynskyi
abb0d07a6f Fixed copy paste issue.
--HG--
branch : release
2017-04-19 14:25:45 +03:00
Roman Telezhynskyi
ed76857cea Refactoring. Take the dialog result directly from exec() function.
--HG--
branch : release
2017-04-19 14:06:48 +03:00
Roman Telezhynskyi
b2ed7d9db4 Refactoring. Add a move assignment operator to all classes that use
QSharedDataPointer class to keep data.

--HG--
branch : release
2017-04-19 13:27:17 +03:00
Roman Telezhynskyi
a0262e260b Coverity scan warnings.
--HG--
branch : release
2017-04-19 12:48:13 +03:00
Roman Telezhynskyi
ef9f9c6af4 Fixed issue #665. Passmark not correct.
--HG--
branch : release
2017-04-18 21:39:13 +03:00
Roman Telezhynskyi
fffd66ac53 Fix About Tape dialog width.
--HG--
branch : release
2017-04-18 14:35:31 +03:00
Roman Telezhynskyi
c2609b98be Refactoring.
--HG--
branch : release
2017-04-18 11:49:05 +03:00
Roman Telezhynskyi
bab0adfebc Refactoring method MUnit(). All formats have the same syntax.
--HG--
branch : release
2017-04-18 11:46:53 +03:00
Roman Telezhynskyi
124fd657e3 Suppress scene item context menu if a tool was activated.
A context menu is allowed only if the Arrow tool is active.

--HG--
branch : release
2017-04-18 11:06:17 +03:00
Roman Telezhynskyi
d354b99149 Fix crash.
Valentina crashes when a user uses a tool and select button Cancel to close a
tool dialog.

--HG--
branch : release
2017-04-17 19:24:41 +03:00
Roman Telezhynskyi
720366657f Fixed regression with UI on Mac.
--HG--
branch : release
2017-04-17 13:13:39 +03:00
Roman Telezhynskyi
45ed0c52d0 Minor fixes for tool box.
--HG--
branch : release
2017-04-17 10:36:27 +03:00
Roman Telezhynskyi
865af1540b SonarQube warning.
--HG--
branch : release
2017-04-15 18:19:16 +03:00
Roman Telezhynskyi
30a35e723a Removed unused function.
--HG--
branch : release
2017-04-15 18:19:00 +03:00
Roman Telezhynskyi
b433d9cfc4 Clang warning.
--HG--
branch : release
2017-04-15 18:11:19 +03:00
Roman Telezhynskyi
c5957846b6 Refactoring. New parent class VInteractiveTool.
Helps to share info about tool dialog.

--HG--
branch : release
2017-04-15 17:39:59 +03:00
Roman Telezhynskyi
e8917bd10d Fixed issue #662. Valentina closes when creating details on 64 bit systems.
--HG--
branch : release
2017-04-15 13:25:07 +03:00
Roman Telezhynskyi
73c035ecc9 Fix bug with trigonometric functions.
Functions sin(), cos() and tan() take radians. And their counterparts asin(),
acos() and atan() return radians. Removed hyperbolic functions because they do
not work with radians.

--HG--
branch : release
2017-04-14 18:42:49 +03:00
Roman Telezhynskyi
a7b721941a Fix build on Windows.
--HG--
branch : release
2017-04-14 17:47:39 +03:00
Roman Telezhynskyi
e7a4935983 Clang warning.
--HG--
branch : release
2017-04-14 17:45:59 +03:00
Roman Telezhynskyi
a78b758226 SonarQube warnings.
--HG--
branch : release
2017-04-14 17:43:26 +03:00
Roman Telezhynskyi
495397621d Fix warning "Review the data-flow - This condition might always evaluate to
"true"."

--HG--
branch : release
2017-04-14 17:20:29 +03:00
Roman Telezhynskyi
5c5db3d7e9 Cppcheck warning.
--HG--
branch : release
2017-04-14 15:59:13 +03:00
Roman Telezhynskyi
0ddc935d9a Force a user to choose a piece before inseting into.
Should help prevent mistakes.

--HG--
branch : release
2017-04-14 13:52:59 +03:00
Roman Telezhynskyi
7b0253d95e Resolved resizing tables after update.
--HG--
branch : release
2017-04-14 12:04:03 +03:00
Roman Telezhynskyi
9284bfec9b Use smart pointer to prevent memory leak.
--HG--
branch : release
2017-04-14 11:30:00 +03:00