Commit Graph

2871 Commits

Author SHA1 Message Date
Roman Telezhynskyi
19b880ad76 New test localization (checking html tags mismatch).
--HG--
branch : develop
2016-08-12 17:37:09 +03:00
Roman Telezhynskyi
da4bf27c75 New test localization (checking punctuation).
--HG--
branch : develop
2016-08-12 15:21:55 +03:00
BojanKverh
8fc3cfae1b Added missing headers
--HG--
branch : feature
2016-08-12 12:11:12 +02:00
BojanKverh
86f24bf0e5 User defined materials are now remembered and can also be deleted in preferences dialog
--HG--
branch : feature
2016-08-12 01:22:23 +02:00
BojanKverh
b0532e6fb9 Removed userDef attributes from DOM tree, where they are not necessary. Fixed some translations. Refactored finding the selected material in detail dialog
--HG--
branch : feature
2016-08-11 22:44:53 +02:00
Roman Telezhynskyi
a890ec47dd Fixed issue #537. Valentina crashes when use undo command.
(grafted from b9726acb2bb6b7bd606d6ecc96e6498f093c1861)

--HG--
branch : develop
2016-08-12 17:38:01 +03:00
Roman Telezhynskyi
3ee6faf124 Fixed issue #532. Unexpected error occurs when zoom out image.
(grafted from c9e825b2ba62707e063700cea95ded566f158d6a)

--HG--
branch : develop
2016-08-12 17:37:47 +03:00
Roman Telezhynskyi
3f75727b6a Resolved issue #540. The latest development version don't compile in MAC.
--HG--
branch : develop
2016-08-09 21:48:43 +03:00
Roman Telezhynskyi
41308f1468 Fixed bug case when after first creating a layout a list of details was cleared.
--HG--
branch : develop
2016-08-09 20:53:38 +03:00
Roman Telezhynskyi
0aabacfee4 String inside label also should be translated.
--HG--
branch : develop
2016-08-09 19:42:00 +03:00
Roman Telezhynskyi
7585db6a58 Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-09 16:55:46 +03:00
Roman Telezhynskyi
9035382238 Cppcheck warnings.
--HG--
branch : develop
2016-08-09 14:18:49 +03:00
Roman Telezhynskyi
31fa9785b9 Fixed several mistakes in original strings.
--HG--
branch : develop
2016-08-09 13:50:37 +03:00
Roman Telezhynskyi
09175a3bde Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-09 12:28:34 +03:00
Roman Telezhynskyi
ec053ba5bf Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-08 22:59:35 +03:00
Roman Telezhynskyi
6c04438a02 Changed macros to be sure that <sys/sysmacros.h> is not included on Windows.
--HG--
branch : develop
2016-08-08 17:57:05 +03:00
Roman Telezhynskyi
67360605b3 Fix broken tool Union details.
--HG--
branch : develop
2016-08-08 17:34:50 +03:00
Roman Telezhynskyi
1937baba99 Error cannot open include file: 'ext/alloc_traits.h': No such file or directory.
--HG--
branch : develop
2016-08-08 16:00:42 +03:00
Roman Telezhynskyi
eec896edd0 Fix errors. error: QPrinter: No such file or directory.
error: QMetaTypeId: No such file or directory.

--HG--
branch : develop
2016-08-08 15:26:48 +03:00
Roman Telezhynskyi
83df3f46b7 Fixed error: sys/sysmacros.h No such file or directory on Windows.
--HG--
branch : develop
2016-08-08 15:14:21 +03:00
Roman Telezhynskyi
67614bcd0b Cppcheck warnings.
--HG--
branch : develop
2016-08-08 15:07:26 +03:00
Roman Telezhynskyi
80f00b361d Use "Include What You Use" tool for optimizing #includes.
--HG--
branch : develop
2016-08-08 14:44:49 +03:00
Roman Telezhynskyi
67b18fbbde Fix problems with layouts in dialog tool Detail. Returned detail name by
default. Setted clear button for field Letter.

--HG--
branch : develop
2016-08-07 23:41:49 +03:00
Roman Telezhynskyi
d9360f3c96 GCC warnings.
--HG--
branch : develop
2016-08-07 18:17:50 +03:00
Roman Telezhynskyi
da91ed974a Merged in BojanKverh/valentina-issue24/feature (pull request #134)
Fixed issue #24. New feature: Label on detail.

--HG--
branch : develop
2016-08-07 18:08:39 +03:00
Roman Telezhynskyi
c94afdf174 Cppcheck warning.
--HG--
branch : develop
2016-08-07 17:31:36 +03:00
Roman Telezhynskyi
34a960fcd6 MSVC warnings.
--HG--
branch : develop
2016-08-07 15:12:08 +03:00
Roman Telezhynskyi
342bf9d124 MSVC doesn't support optimization flag -O3.
--HG--
branch : develop
2016-08-07 14:40:59 +03:00
Roman Telezhynskyi
3a4b78c42b Fixed build on Windows with MSVC 2013_64_opengl. Added include path to VMisc for
VDXF static library.

--HG--
branch : develop
2016-08-07 14:30:18 +03:00
Roman Telezhynskyi
8118bd45e5 With GCC 6.1.1:
debugbreak.h:51:1: error: 'inline' is not at beginning of
declaration [-Werror=old-style-declaration]

So i moved the inlines at the beginning of the declaration.

--HG--
branch : develop
2016-08-07 14:25:43 +03:00
Roman Telezhynskyi
46c295b4b1 Suppress MSVC 2015 warning C4309.
--HG--
branch : develop
2016-08-06 22:43:09 +03:00
Roman Telezhynskyi
64ebccd94b Suppress cppcheck warning.
--HG--
branch : develop
2016-08-06 21:56:33 +03:00
Roman Telezhynskyi
c9cdd2cd8d Using macros QT_WARNING_DISABLE_*.
--HG--
branch : develop
2016-08-06 21:42:40 +03:00
Roman Telezhynskyi
88be00fe42 Fixed build on Qt lower version 5.5.0.
--HG--
branch : develop
2016-08-06 19:32:51 +03:00
Roman Telezhynskyi
1c987b919b Use gcc’s Address Sanitizer only in Debug mode.
--HG--
branch : develop
2016-08-06 19:23:42 +03:00
Roman Telezhynskyi
305cbe8acb Fixed warning.pri for CollectionTest and TranslationsTest libraries.
--HG--
branch : develop
2016-08-06 19:18:25 +03:00
Roman Telezhynskyi
69e0ff74e6 MSVC warnings.
--HG--
branch : develop
2016-08-06 15:59:30 +03:00
Roman Telezhynskyi
e7b72c4a44 Fix broken build on MSVC.
--HG--
branch : develop
2016-08-05 16:44:20 +03:00
Roman Telezhynskyi
2af9c0e65a Fixed issues with include paths.
--HG--
branch : develop
2016-08-05 13:48:23 +03:00
BojanKverh
f56614966b Deleted unnecessary class member
--HG--
branch : feature
2016-08-03 00:44:22 +02:00
BojanKverh
192bd7e7d5 Deleted unnecessary include
--HG--
branch : feature
2016-08-03 00:39:02 +02:00
BojanKverh
a2ee1e24e6 Fixed cursor handling over the label
--HG--
branch : feature
2016-08-03 00:32:37 +02:00
BojanKverh
f2d5b00fd9 Detail bounding box is drawn when one of its items is in move, resize or rotate mode
--HG--
branch : feature
2016-08-02 22:51:40 +02:00
Roman Telezhynskyi
a2d18c15a4 Fix broken VTextGraphicsItem::paint.
--HG--
branch : develop
2016-08-02 21:16:15 +03:00
Roman Telezhynskyi
ffb6f1fbd5 cppcheck warnings.
--HG--
branch : develop
2016-08-02 15:12:13 +03:00
Roman Telezhynskyi
3e12775a22 qt.network.ssl.warning=false appears only since Qt 5.4.1.
--HG--
branch : develop
2016-08-02 13:46:46 +03:00
Roman Telezhynskyi
47b1e20257 Fixed issue #538. QSslSocket error messages during startup in newest development
build.

--HG--
branch : develop
2016-08-02 13:43:41 +03:00
Roman Telezhynskyi
e7504c0ea1 Resolved issue #24. New feature: Label on detail.
--HG--
branch : develop
2016-07-30 20:03:37 +03:00
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
BojanKverh
a1c905381b Fixed label update on clicking OK in pattern properties dialog and the label is hidden when there is no text on it
--HG--
branch : feature
2016-07-30 13:21:03 +02:00
BojanKverh
a3f4c6da0d Set maximal font size back to 128
--HG--
branch : feature
2016-07-30 12:48:18 +02:00
BojanKverh
06cfaea3b3 Fixed maximal font size
--HG--
branch : feature
2016-07-29 21:59:48 +02:00
Bojan Kverh
c5f38207fd Merged develop into feature
--HG--
branch : feature
2016-07-29 21:47:49 +02:00
Roman Telezhynskyi
483e56866d Added MSVC warnings.
--HG--
branch : develop
2016-07-29 21:04:53 +03:00
Roman Telezhynskyi
ed2bbd97a3 Fixed build on Windows with MSVC. Added include path to VMisc for VPatternDB
static library.

--HG--
branch : develop
2016-08-05 13:41:36 +03:00
Roman Telezhynskyi
75e9e9b2ee Fixed issues with include paths.
--HG--
branch : develop
2016-08-05 13:41:02 +03:00
Roman Telezhynskyi
ed0fb20028 Fixed build on Windows with MSVC. Added include path to VMisc for IFC static
library.

--HG--
branch : develop
2016-07-29 15:43:34 +03:00
Roman Telezhynskyi
88ddf8021e Use macros Q_DECL_CONSTEXPR instead of direct constexpr.
constexpr supported since MSVC 2015.

--HG--
branch : develop
2016-08-05 13:17:05 +03:00
Roman Telezhynskyi
25b46d651e "noexcept" is only supported since the Visual Studio 2015
--HG--
branch : develop
2016-07-29 12:07:44 +03:00
Roman Telezhynskyi
9ef1ed4e22 Collection unit tests moved to separate binary.
--HG--
branch : develop
2016-08-04 20:10:12 +03:00
Roman Telezhynskyi
8f78b31710 Translation unit tests moved to separate binary.
--HG--
branch : develop
2016-08-04 19:28:28 +03:00
Roman Telezhynskyi
ec800565d7 TST_TSTranslation refactoring. An error shouldn't stop test anymore.
--HG--
branch : develop
2016-08-03 19:56:04 +03:00
Roman Telezhynskyi
0cdd058eb4 Fixed issue #538. QSslSocket error messages during startup in newest development
build.

--HG--
branch : develop
2016-08-03 14:54:18 +03:00
Roman Telezhynskyi
ce92d2994d Show debug string immediately after call.
--HG--
branch : develop
2016-08-03 14:53:38 +03:00
Roman Telezhynskyi
3676f8eceb Test refactoring. Each fail will not stop checking QM file anymore.
--HG--
branch : develop
2016-08-03 14:49:46 +03:00
Roman Telezhynskyi
c7cddbfb28 Specify correct name for lrelease on Windows.
--HG--
branch : develop
2016-07-28 15:15:31 +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
7b7ef6c0e2 Fixed build.
--HG--
branch : develop
2016-07-26 16:51:38 +03:00
Valentina Zhuravska
6081a5f9d7 Little fix.
--HG--
branch : feature
2016-07-26 16:16:09 +03:00
Valentina Zhuravska
1ae8509d63 Merge with develop.
--HG--
branch : feature
2016-07-26 15:32:55 +03:00
Valentina Zhuravska
f9c9cedfac We don't need DialogTool::ShowVisToolTip slot anymore.
--HG--
branch : feature
2016-07-26 13:45:17 +03:00
Roman Telezhynskyi
689024d60f Resolved issue #530. Add debug messages for Layout creation errors.
--HG--
branch : develop
2016-07-26 13:33:58 +03:00
BojanKverh
88055db170 Show measurements option is now disabled and not hidden, if there are no measurements associated with the current pattern. Finished pattern converter and refactored measurement file extraction in text manager class
--HG--
branch : feature
2016-07-25 19:10:13 +02:00
Roman Telezhynskyi
b5457867e5 Try be more verbose when copy test files.
--HG--
branch : develop
2016-07-25 20:01:19 +03:00
Bojan Kverh
8aabd5a8d9 Merged develop into feature
--HG--
branch : feature
2016-07-25 19:01:07 +02:00
Valentina Zhuravska
d248c4f18a Added VAbstractMainWindow class.
--HG--
branch : feature
2016-07-25 19:23:00 +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
BojanKverh
1b5ca4e23d Fixed the pattern converter
--HG--
branch : feature
2016-07-24 19:48:31 +02:00
BojanKverh
85db8f84e6 Added hiding Show measurement option and showing just a filename without path in detail and layout mode. Also fixed a wrong comment
--HG--
branch : feature
2016-07-24 19:07:38 +02:00
BojanKverh
a6e38b54d0 Added the optional measurements line to the pattern info label
--HG--
branch : feature
2016-07-24 12:30:10 +02:00
BojanKverh
a625c35616 Added comments to most important new classes
--HG--
branch : feature
2016-07-23 15:26:15 +02:00
Bojan Kverh
b19f45e90a Merged develop into feature
--HG--
branch : feature
2016-07-23 14:11:22 +02:00
Roman Telezhynskyi
5da965ba69 After update to Qt 5.7 custom libraries: qmuparser and vpropertybrpwser lost
"@rpath" prefix. Setting QMAKE_SONAME_PREFIX fix it.

--HG--
branch : develop
2016-07-23 14:48:16 +03:00
Roman Telezhynskyi
524419e53f Fixed build on OS X.
--HG--
branch : develop
2016-07-23 12:56:22 +03:00
Roman Telezhynskyi
dfb8c387b6 Added checking which minimal OSX version supports current Qt version.
From time to time Qt change minimal supported OS X version. This checking will
help build Valentina on older Qt version without fixing .pro files.

--HG--
branch : develop
2016-07-23 12:54:00 +03:00
BojanKverh
03482fb9a8 Moved m_tmDetail, m_tmPattern and m_liPP from VLayoutDetail into VLayoutDetailData class
--HG--
branch : feature
2016-07-22 12:50:21 +02:00
BojanKverh
455befa493 Removed printf commands, added Q_REQUIRED_RESULT macros, replaced v[i] with v.at(i) where needed, replaced 1,0 with true,false when creating boolean XML attributes
--HG--
branch : feature
2016-07-22 12:40:02 +02:00
BojanKverh
0e7b369c2e Corrected all the issues reported by Roman till 10:11 AM
--HG--
branch : feature
2016-07-22 11:56:45 +02:00
BojanKverh
28af32f027 Removed unnecessary method call
--HG--
branch : feature
2016-07-22 10:07:16 +02:00
BojanKverh
312b8e458b Centered the label texts and did some refactoring, so that the label content is generated in one place
--HG--
branch : feature
2016-07-21 21:46:49 +02:00
BojanKverh
5ba40aad8c Fixed alignments
--HG--
branch : feature
2016-07-21 16:49:26 +02:00
BojanKverh
d6341b50e4 Fixed alignment
--HG--
branch : feature
2016-07-21 08:38:10 +02:00
Bojan Kverh
4138d30fb6 Merged develop into feature
--HG--
branch : feature
2016-07-21 08:30:51 +02:00
Roman Telezhynskyi
8d56b872dc Refactoring method VDomDocument::SetAttribute().
--HG--
branch : develop
2016-07-20 18:59:35 +03:00
Roman Telezhynskyi
dbcea3a979 GCC warnings.
--HG--
branch : develop
2016-07-20 18:58:21 +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
19387cc80e Resolved issue #528. Error: QSslSocket: cannot resolve SSLv2_client_method.
--HG--
branch : develop
2016-07-20 11:48:09 +03:00