Commit Graph

6699 Commits

Author SHA1 Message Date
Roman Telezhynskyi
12c360b33a Fix bogus newline in src/test/ValentinaTest/tst_vabstractpiece.cpp. Closes #61 2020-09-28 16:42:31 +03:00
Roman Telezhynskyi
484b92a38e Dialog setup miltisize measurements. 2020-09-28 16:38:32 +03:00
Roman Telezhynskyi
054560c7a0 Fix label size for case with two pins.
(cherry picked from commit 64f70a58cf)
2020-09-23 16:55:04 +03:00
Roman Telezhynskyi
047ace3f26 Fix removing a pin in the Seam Allowance tool dialog.
(cherry picked from commit b83fec62bf)
2020-09-23 14:58:34 +03:00
Roman Telezhynskyi
7ac93657cb Update an increment details after update from file.
When we update the table after changes in pattern we want also to see change in formula of a current row.
2020-09-22 17:37:55 +03:00
Roman Telezhynskyi
f150428925 Fix bug in VAbstractCurve::CurveIntersectLine.
QLineF::intersects not always accurate on edge cases. We must provide additional check.
2020-09-22 17:05:18 +03:00
Roman Telezhynskyi
0828f25788 Fix crash when a notch is empty. 2020-09-22 14:43:39 +03:00
Roman Telezhynskyi
c8a624f632 Lupdate. 2020-09-22 13:38:33 +03:00
Roman Telezhynskyi
1300289abb Disable MSVC warning 5219. implicit conversion from '<type>' to '<type>', possible loss of data.
No way to disable it for Qt's headers.
2020-09-22 12:45:33 +03:00
Roman Telezhynskyi
0e6284b929 Drop support for macOS 10.11.
Brew no longer support this version.
2020-09-22 12:34:20 +03:00
Roman Telezhynskyi
e3ca47dc10 Fix the second case of error: 'auto' not allowed in lambda parameter. 2020-09-22 10:23:27 +03:00
Roman Telezhynskyi
88ec0f69ca Fix error: 'auto' not allowed in lambda parameter. 2020-09-22 09:45:17 +03:00
Roman Telezhynskyi
08e2ee59b3 Merge branch 'develop' into 'develop'
Optimized some algorithms

Refactoring of some algorithms, which should increase the performance of at least the ::Map method significantly. 

Labeled as Draft, because I didn't test the code apart from running the test cases. However, I believe the test cases don't cover these code sections, because the tests still pass, even if I manipulate the algorithms deliberately to fail.

See merge request smart-pattern/valentina!9
2020-08-29 10:59:29 +00:00
llocram
c8119b88c9 Silenced conversion warning 2020-08-28 17:32:35 +02:00
llocram
819bcadee4 Replaced hand-crafted find-algorithm with std::find_if. Removed a logical error (pos > points.size() never returns true). 2020-08-28 14:18:41 +02:00
llocram
1a2c5de357 Replaced hand-crafted reverse algorithm with std::reverse 2020-08-28 14:09:16 +02:00
llocram
ed970fe6f6 Minor refactoring 2020-08-28 13:57:14 +02:00
Roman Telezhynskyi
07858f7fcb Refactoring. 2020-08-01 11:55:56 +03:00
Roman Telezhynskyi
2814ff073a Improve searching lost measurements.
Very usual users have a situation where they move a pattern and measurements and place them in one folder. If path to measurements is not correct anymore but in the pattern folder we can find measurements file with the same name as expected in the broken path we will propose it by default. This change brings another case. Telegram automatically replace all spaces with underscores. Such names also must be checked and proposed.
2020-07-31 17:07:47 +03:00
Roman Telezhynskyi
eb04357f51 Small improvement for debugging paths.
Show node index number.
2020-07-31 16:34:37 +03:00
Roman Telezhynskyi
15d02bc456 Fix invalid layout allowance. Closes #58 2020-07-31 16:31:27 +03:00
Roman Telezhynskyi
49c62b072b Refactoring.
Add new constructor for class VRawSAPoint to improve readability.
2020-07-31 16:15:00 +03:00
Roman Telezhynskyi
89c6a62131 Not all rpm based distributions support elif statement. 2020-07-13 19:45:35 +03:00
Roman Telezhynskyi
e3beecd6fd Update package version for deploying artifacts on bintray. 2020-07-13 19:42:02 +03:00
Roman Telezhynskyi
dc14f164be Fix error in Reverse function. 2020-07-13 18:23:15 +03:00
Roman Telezhynskyi
9389cb546c Refactoring. Redesign a container reversing method. 2020-07-13 16:28:59 +03:00
Roman Telezhynskyi
acac092ff3 Fix path to AppImage root folder.
Valentina relies on absolute paths to find path to components. In case of AppImage path will be mimicked, but root must be corrected to take into account tmp folder AppImage mounts data.
2020-07-13 16:28:59 +03:00
Roman Telezhynskyi
ee29874543 Default prefix must be defined before first use. Added new preprocessor macros value BINDIR. #56 2020-07-13 16:28:59 +03:00
Roman Telezhynskyi
1cc565686d Lupdate. 2020-07-13 13:06:02 +03:00
Roman Telezhynskyi
cc506e96ea Fix hardcoded path to package data directory. It should be controlled over prefix. #56 2020-07-11 10:52:53 +03:00
Roman Telezhynskyi
073ed832c4 Fix error in rpm package.
Different distributions package poppler under different names.
2020-07-10 20:46:49 +03:00
Roman Telezhynskyi
5618df2b66 Fix build. Add missing headers. Closes #54 2020-07-10 20:15:46 +03:00
Roman Telezhynskyi
15e731671f error: 'void QProcess::start(const QString&, QIODevice::OpenMode)' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead. 2020-07-08 13:08:05 +03:00
Roman Telezhynskyi
233246730c Use of QWheelEvent::orientation has been deprecated since Qt 5.15. 2020-07-08 11:44:58 +03:00
Roman Telezhynskyi
158edcc093 Use of QButtonGroup::buttonClicked has been deprecated since Qt 5.15. 2020-07-08 11:29:40 +03:00
Roman Telezhynskyi
e31a22654e Use of Qt::MatchRegExp deprecated since Qt 5.15. Use Qt::MatchRegularExpression instead. 2020-07-08 10:31:53 +03:00
Roman Telezhynskyi
dd9cfb39f5 More deprecation warnings. 2020-07-07 19:15:43 +03:00
Roman Telezhynskyi
e2669b4e2b Fix build on Linux. 2020-07-07 18:55:31 +03:00
Roman Telezhynskyi
c3e935029e More deprecation warnings. 2020-07-07 17:48:26 +03:00
Roman Telezhynskyi
3383df193b More deprecation warnings. 2020-07-07 10:51:00 +03:00
Roman Telezhynskyi
2c7456ccd3 Try another approach. 2020-07-06 16:35:54 +03:00
Roman Telezhynskyi
43db94f4b0 Fix conditions. 2020-07-06 15:37:41 +03:00
Roman Telezhynskyi
8bf4c85e6e Fix deprecation warnings. 2020-07-06 09:41:08 +03:00
Roman Telezhynskyi
d4315f7f1f AppVeyor now supports Qt 5.15. 2020-07-04 15:14:46 +03:00
Roman Telezhynskyi
a887fcb3df New warning. Error calculating segment of curve. 2020-07-04 15:13:45 +03:00
Roman Telezhynskyi
5f2bec91d9 DRY. Refactoring item move code. smart-pattern/valentina#53 2020-06-20 12:20:39 +03:00
Roman Telezhynskyi
d08da56764 Improve moving items on scene smart-pattern/valentina#53.
Increase delay to 160 ms. Set static margins.
2020-06-20 12:08:59 +03:00
Roman Telezhynskyi
0efb32d475 Fix issue with package xpdf on Ubuntu 20.04. [ci skip]
xpdf never provided a binary we needed. All this time we needed poppler-utils package. Everything worked because xpdf suggested it.
2020-06-13 17:52:42 +03:00
Roman Telezhynskyi
6af9d104cd Fix build on Qt 5.15: missed include in vlayoutdef header. 2020-06-13 11:25:54 +03:00
Roman Telezhynskyi
11d9c9be28 Update .travis.yml. 2020-06-04 19:03:09 +03:00