Commit graph

79 commits

Author SHA1 Message Date
Roman Telezhynskyi 7c1c6deeae Fix crash when default locale is ru.
Additionally fix a common antipattern when loading translations in Qt.
2022-04-22 12:42:46 +03:00
Roman Telezhynskyi 6d77f3ebc0 Remove support for russian language. 2022-03-18 12:28:55 +02:00
Roman Telezhynskyi 5d22771428 Improve logging.
Suppress useless warnings.
2022-03-14 17:38:32 +02:00
Roman Telezhynskyi e5105e4eed Merge branch 'develop' into feature/manual-layout 2021-07-26 16:47:54 +03:00
Roman Telezhynskyi f5a5fadc52 Optimize calls. 2021-06-23 15:58:43 +03:00
Roman Telezhynskyi a9711316ec Refactoring. 2021-05-21 21:33:17 +03:00
Roman Telezhynskyi c8f12690bc Clean pattern messages.
Replace \" with ".
2021-02-17 19:07:55 +02:00
Roman Telezhynskyi 2bb95154cd Fix Tape crash. 2021-02-06 15:52:21 +02:00
Roman Telezhynskyi 58cae6f66c New option "Don't use the native file dialog". 2020-12-17 18:43:15 +02:00
Roman Telezhynskyi 80d9fbc107 New function Warning. 2020-11-20 13:18:38 +02:00
Roman Telezhynskyi 4cea74d63b Loading measurements in Valentina. 2020-10-15 18:05:21 +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 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 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi f64a33fb98 Resolved issue #992. QXcbConnection: XCB Error.
--HG--
branch : develop
2020-01-20 10:14:44 +02:00
Roman Telezhynskyi 037ca99280 Refactoring. Move the code that gets path to exe file to separate module. DRY.
--HG--
branch : develop
2019-11-29 14:40:00 +02:00
Roman Telezhynskyi 7624b27409 BinReloc to get path to exe directory.
--HG--
branch : develop
2019-11-29 11:40:00 +02:00
Roman Telezhynskyi df79ea7395 Test idea that Qt classes internally use ICU.
--HG--
branch : develop
2019-11-29 08:49:32 +02:00
Roman Telezhynskyi 1d28dd5be9 u_setDataDirectory expects const * char.
--HG--
branch : develop
2019-11-29 08:15:29 +02:00
Roman Telezhynskyi 50b929ea48 u_setDataDirectory to define path to ICU data.
--HG--
branch : develop
2019-11-28 16:42:06 +02:00
Roman Telezhynskyi 0c78511cfc Set environment variable ICU_DATA on runtime.
This time before QApplication and manually getting the application dir path.

--HG--
branch : develop
2019-11-26 19:56:40 +02:00
Roman Telezhynskyi f81d814bb2 QCoreApplication::applicationDirPath returns empty string until we do not init
QApplication instance.

--HG--
branch : develop
2019-11-26 16:44:52 +02:00
Roman Telezhynskyi 8f6ae65224 New feature Pattern Messages.
Added special field to show pattern warnings instead of warning dialogs.
Fixed issue with tabified dockwidgets.

--HG--
branch : develop
2019-10-28 17:44:31 +02:00
Roman Telezhynskyi c536c40628 Refactor AboutToQuit.
--HG--
branch : develop
2019-07-01 12:47:06 +03:00
Roman Telezhynskyi 0987428a93 Increase required Qt version up to 5.4.
--HG--
branch : develop
2019-04-05 15:42:22 +03:00
Roman Telezhynskyi fe9dc90dc7 Bug in undocommands. We should return to pattern piece only if in Calculation
mode. If do it in Details mode Valentina may not switch pattern piece back when
a user returns to Calculation mode. This breaks a work and no new object can be
added to pattern.

--HG--
branch : develop
2018-07-25 11:26:09 +03:00
Roman Telezhynskyi 2c7b21b98d Resolved issue #865. New feature. Dynamic Way to define Material in piece label.
--HG--
branch : develop
2018-07-18 20:18:30 +03:00
Roman Telezhynskyi fd85efacd9 Resolved issue #862. Force Valentina to immediately terminate if a pattern
contains a parsing warning.

--HG--
branch : develop
2018-07-13 16:18:04 +03:00
Roman Telezhynskyi 2235a5d3d8 Cppcheck warning. Virtual function 'OpenSettings' is called from constructor
'VApplication(int&argc,char**argv)'.

--HG--
branch : develop
2018-07-09 10:45:23 +03:00
Roman Telezhynskyi 81caed8f5f Added new function VAbstractApplication::ClearMessage.
It will help clear messages from unneeded '"' at the start and at the end.
qWarning and others adds them.

--HG--
branch : develop
2018-05-25 17:54:21 +03:00
Roman Telezhynskyi 7fb0ebed20 Cppcheck warning.
(grafted from 9cf24fc42bd2aff67a32924e48d1bd2b4d61ee2c)

--HG--
branch : develop
2017-12-10 13:29:17 +02:00
Roman Telezhynskyi 0a66db7184 Resolved issue #778. Calling Valentina with "-h" option opens information
dialog instead of writing to console.
(grafted from 4fb29d9b4e5441c43704005e4776f87d548673e7)

--HG--
branch : develop
2017-12-10 13:17:04 +02:00
Roman Telezhynskyi 61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi bfe327ee13 If pattern linked to individual measurements it should get customer name from
it.

--HG--
branch : develop
2017-09-19 16:07:48 +03:00
Roman Telezhynskyi 89ed92e93f Added more placeholders.
--HG--
branch : feature
2017-08-14 15:11:14 +03:00
Roman Telezhynskyi d0cc8902f9 SonarQube warnings.
--HG--
branch : develop
2017-07-09 09:02:26 +03:00
Roman Telezhynskyi e6eb9c756b Cppcheck warnings.
--HG--
branch : develop
2017-07-06 12:58:26 +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 38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi 7d78a0f63f Resolved issue #619. Non writable directory prevents opening.
--HG--
branch : develop
2017-02-04 13:28:47 +02:00
Roman Telezhynskyi 0419f60e0b Merge with develop.
--HG--
branch : feature
2016-12-23 12:58:17 +02:00
Roman Telezhynskyi 731eb9ec89 Refactoring.
There is no automatic disconnection when the 'receiver' is destroyed because
it's a functor with no QObject. However, since 5.2 there is an overload which
adds a "context object". When that object is destroyed, the connection is
broken (the context is also used for the thread affinity: the lambda will be
called in the thread of the event loop of the object used as context).

--HG--
branch : develop
2016-12-21 20:45:14 +02:00
Roman Telezhynskyi 5c40a91335 Remove empty statement.
--HG--
branch : develop
2016-12-21 17:36:38 +02:00
Roman Telezhynskyi ffab000e0f Remove empty statement.
--HG--
branch : develop
2016-12-20 20:57:20 +02:00
Roman Telezhynskyi e2579c231c Fix pointer to current scene. Show piece path visualization if the tool dialog
was opened.

--HG--
branch : feature
2016-11-29 19:39:40 +02:00
Roman Telezhynskyi 1bc0378b69 Enable attribute Qt::AA_UseHighDpiPixmaps only since Qt 5.6.0. ref #584.
--HG--
branch : develop
2016-11-04 12:44:57 +02:00
Roman Telezhynskyi d8114a18f1 Cppcheck warning.
--HG--
branch : develop
2016-10-30 16:25:14 +02:00
Roman Telezhynskyi 3e8f8a8069 Resolved issue #582. Issue with standard path to shared data on Linux.
--HG--
branch : develop
2016-10-30 14:34:55 +02:00
Roman Telezhynskyi 214c4a50b6 Fixed path to translations and standard measurements on Mac OS X.
--HG--
branch : develop
2016-10-25 17:54:51 +03:00
Roman Telezhynskyi efef5d371b Suppress also fatal errors from qt.network.ssl. ref #568.
--HG--
branch : develop
2016-09-20 17:28:39 +03:00