Commit graph

79 commits

Author SHA1 Message Date
Roman Telezhynskyi 46241e8e85 Refactoring.
Code style.
2023-08-18 16:22:16 +03:00
Roman Telezhynskyi a7b0ed1171 QGraphicsView not interpreting Mac laptop touchpad correctly. 2023-08-18 16:10:16 +03:00
Roman Telezhynskyi bc1f47921f Refactoring.
Code style.
2023-08-05 17:51:47 +03:00
Roman Telezhynskyi 03630fb273 Refactoring. 2023-05-03 14:07:08 +03:00
Roman Telezhynskyi 885a618820 QDropEvent::pos() is deprecated since 6.0. 2023-02-10 17:51:22 +02:00
Roman Telezhynskyi 2eaecc747c Fix loading background image.
Drag and drop doesn't work for new pattern file.
2022-10-04 17:11:11 +03:00
Roman Telezhynskyi 1e344d6df0 Fix calculating an elliptical arc. 2022-08-27 16:46:25 +03:00
Roman Telezhynskyi 499ec96691 Move literals to separate header. 2022-02-18 10:36:38 +02:00
Roman Telezhynskyi 357fd3a0ac New feature Background image. Closes #43 2022-01-28 16:54:58 +02:00
Roman Telezhynskyi d5a02ac48c Export layout. 2021-09-06 15:31:36 +03:00
Roman Telezhynskyi 0138e5a321 Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2021-02-24 16:26:11 +02:00
Roman Telezhynskyi 2bb95154cd Fix Tape crash. 2021-02-06 15:52:21 +02:00
Roman Telezhynskyi d6e555f482 Reduce connectivity for VMainGraphicsView class.
Use a signal instead of direct read of a main window to trigger zoom fit best.
2020-12-27 16:38:40 +02:00
Roman Telezhynskyi 936011a8d6 Reduce connectivity for VMainGraphicsView class.
Use a signal instead of direct read of a main window to trigger zoom fit best.
2020-12-27 16:35:17 +02:00
Roman Telezhynskyi 0371905c0d Merge remote-tracking branch 'origin/develop' into feature/manual-layout 2020-11-10 16:00:01 +02:00
Roman Telezhynskyi 4cea74d63b Loading measurements in Valentina. 2020-10-15 18:05:21 +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 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 7b1449f11e Redesign settings.
All apps settings classes moved to binaries. Use common part to get access from static libraries. Fixed issues with VMainGraphicsView class.
2020-05-10 18:32:26 +03:00
Roman Telezhynskyi 475bdadf9b Fix link to project repo in license header. 2020-01-31 08:02:08 +02:00
Roman Telezhynskyi 185e228853 Allow scrolling hand dragging for non interactive scenes.
--HG--
branch : develop
2019-07-21 12:27:58 +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 d538816e42 Refactoring.
--HG--
branch : develop
2019-02-11 13:35:09 +02:00
Roman Telezhynskyi 21b3f4b5ae Fixed issue #856. Regression in curve control point interaction on macOS.
--HG--
branch : develop
2018-06-19 13:08:54 +03:00
Roman Telezhynskyi 71e1cc33c0 Class QDesktopWidget is obsolete.
--HG--
branch : develop
2018-05-27 11:34:35 +03:00
Roman Telezhynskyi bb95c3162b Fixed issue #851. Mouse click on a highlighted object crashes Valentina.
--HG--
branch : develop
2018-05-24 09:56:19 +03:00
Roman Telezhynskyi fc92fd4824 Fix warning "Painter path exceeds +/-32767 pixels."
In this case OpenGL requires using a stencil buffer.

--HG--
branch : develop
2018-05-21 12:14:30 +03:00
Roman Telezhynskyi 89b4642c16 Fix build fail.
--HG--
branch : develop
2018-05-11 13:14:57 +03:00
Roman Telezhynskyi 2ee75fdbab Tab with options to control Scrolling settings. ref #831.
Empiric settings do not work for all.

--HG--
branch : develop
2018-05-11 12:42:20 +03:00
Roman Telezhynskyi 1e0b777bd6 New option to control calling zoom current pattern piece by mouse double click.
--HG--
branch : develop
2018-05-10 14:12:41 +03:00
Roman Telezhynskyi 194a1878df Refactoring. Move getting list of scene items from the loop.
--HG--
branch : develop
2018-05-08 11:33:53 +03:00
Roman Telezhynskyi 3d121c8247 Improve scrolling. ref #831.
--HG--
branch : develop
2018-04-26 15:08:04 +03:00
Roman Telezhynskyi be2a706cc0 Mouse double click zoom fit best current pattern piece.
--HG--
branch : develop
2018-04-17 09:56:41 +03:00
Roman Telezhynskyi 29b751b5a2 Refactoring. Remove duplicated blocks of code.
--HG--
branch : develop
2018-04-16 13:15:16 +03:00
Roman Telezhynskyi 50c858ce30 Support for pinch gesture (zooming) on touchpad. ref #831.
--HG--
branch : develop
2018-04-16 11:14:17 +03:00
Roman Telezhynskyi 702c256c87 Fixing issue #831. macOS touchpad gestures glitching.
--HG--
branch : develop
2018-04-16 11:05:57 +03:00
Roman Telezhynskyi 0e3a9533af Refactoring. Use C++11 range-based loop.
--HG--
branch : develop
2018-04-03 14:36:38 +03:00
Roman Telezhynskyi 6b6a2632a9 Refactoring. Replacing all Q_FOREACH/foreach loops with the c++ range-based
loops.

--HG--
branch : develop
2018-04-03 11:15:58 +03:00
Roman Telezhynskyi a68da11776 Inform a user about options those require restart to take effect.
--HG--
branch : develop
2018-03-12 11:56:47 +02:00
Roman Telezhynskyi 368c3a871a Resolved issue #819. Use OpenGL as render for view.
--HG--
branch : develop
2018-03-10 16:39:37 +02:00
Roman Telezhynskyi 15339939ef Fix QGraphicsView cursor regression.
--HG--
branch : develop
2018-01-12 14:31:45 +02:00
Roman Telezhynskyi 910ac6864c Resolved issue #794. Better control over scale value.
--HG--
branch : develop
2018-01-09 20:13:30 +02:00
Roman Telezhynskyi 34d1b91225 New hack to restore mouse cursor.
--HG--
branch : develop
2018-01-01 16:16:50 +02:00
Roman Telezhynskyi 7a11b3497a Fix bug with setting cursor QGraphicsPathItem without hover events.
--HG--
branch : develop
2017-10-30 11:08:25 +02:00
Roman Telezhynskyi d3cf15f5b8 Fix some bugs.
--HG--
branch : develop
2017-10-28 17:31:18 +03:00
Roman Telezhynskyi 4af32961b0 Optimize adjusting new scene rect.
If we know an object that cause adjustment no need to recalc bounding rect for
all scene items.

--HG--
branch : develop
2017-10-27 09:13:51 +03:00
Roman Telezhynskyi 61172d46c4 Fix typo in headers.
--HG--
branch : develop
2017-10-05 12:20:01 +03:00
Roman Telezhynskyi 08df3b4486 Scrolling delay.
When object is close to edge of view Valentina begins scrolling scene to ensure
that the object is visible. In many cases this happens to fast for user. As
solution after correction Valentina will wait 80 milliseconds before procedding
next move. This will give users enough time to react. Such delay is called only
if view was scrolled.

--HG--
branch : develop
2017-10-02 16:25:18 +03:00
Roman Telezhynskyi 39aa43fe8f SonarQube warnings.
--HG--
branch : develop
2017-09-13 11:52:41 +03:00