Commit graph

49 commits

Author SHA1 Message Date
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
Roman Telezhynskyi 4d7d2ac607 Fix Valentina crash.
Valentina crashes if click on curve control point.

--HG--
branch : develop
2017-07-25 21:56:01 +03:00
Roman Telezhynskyi acd960ecee Fixed issue #637. Max scene size too small to fit all objects.
--HG--
branch : develop
2017-06-16 15:03:24 +03:00
Roman Telezhynskyi b0f867499c Resolved issue #244. New feature: Adjust line and point thickness and label
size.

--HG--
branch : develop
2017-06-16 14:53:08 +03:00
Roman Telezhynskyi a0262e260b Coverity scan warnings.
--HG--
branch : release
2017-04-19 12:48:13 +03:00
Roman Telezhynskyi e7a4935983 Clang warning.
--HG--
branch : release
2017-04-14 17:45:59 +03:00
Roman Telezhynskyi 6d271423e0 Fixed scroll hand drag mode.
--HG--
branch : release
2017-04-14 08:22:28 +03:00
Roman Telezhynskyi 38abf5c9a0 Removed redundant forward declaration.
--HG--
branch : develop
2017-02-18 11:22:59 +02:00
Roman Telezhynskyi 2d61b87256 Remove empty statement.
--HG--
branch : develop
2016-12-20 21:19:21 +02:00
Roman Telezhynskyi ffab000e0f Remove empty statement.
--HG--
branch : develop
2016-12-20 20:57:20 +02:00
Roman Telezhynskyi 2377373a89 Fixed issue #591. Control scene max and min scale factor.
--HG--
branch : develop
2016-12-06 16:18:40 +02:00
Roman Telezhynskyi d66280033b Fixed issue #546. Compile error under Windows in current develop revision.
--HG--
branch : develop
2016-08-16 19:57:32 +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 7585db6a58 Fix build on Qt\5.3\msvc2013_64_opengl.
--HG--
branch : develop
2016-08-09 16:55:46 +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 7aca6d8179 Added VSimpleCurve to list of valid objects to call a visualization.
--HG--
branch : develop
2016-05-20 14:42:48 +03:00
Roman Telezhynskyi 351f01e0e3 Disable hover and selection when work with a tool.
--HG--
branch : feature
2016-03-31 17:01:41 +03:00
Roman Telezhynskyi 254ccf8f52 Toggle ScrollHandDrag mode by clicking a middle mouse button.
--HG--
branch : develop
2016-03-30 11:51:09 +03:00
Roman Telezhynskyi 77c09063ff Added horizontal scrolling by pressiong Shift + mouse wheel.
--HG--
branch : develop
2016-03-30 11:25:13 +03:00
Roman Telezhynskyi 387c33e9e0 Refactoring. Smooth scrolling.
--HG--
branch : feature
2016-01-25 15:49:37 +02:00
Roman Telezhynskyi 7982e48e4e If item's rect is bigger than view's rect ensureVisible works very unstable.
(grafted from d807a6fc7a9c1abc588dfda621ac7b70f90b401b)

--HG--
branch : develop
2016-01-15 14:57:47 +02:00
Roman Telezhynskyi 3026f9dfc6 Call ensureVisible() only in mouseMoveEvent() method. Alwayse update size of
scene.
(grafted from a080e8c10e0817579d802539e4ef30b4b51f43a8)

--HG--
branch : develop
2016-01-15 14:57:23 +02:00
Roman Telezhynskyi 73f0f4ca58 Show scene origins.
--HG--
branch : develop
2016-01-15 14:55:56 +02:00
Roman Telezhynskyi 8745a78c67 Calculate items bounding rect without hidden items.
--HG--
branch : develop
2016-01-13 15:47:38 +02:00
Roman Telezhynskyi 3beb8a8b7c Refactoring. Smooth scrolling.
--HG--
branch : develop
2015-12-17 21:13:07 +02:00
Roman Telezhynskyi 6de8a44314 Try to fix flowing of drawing.
--HG--
branch : develop
2015-12-04 21:49:00 +02:00
Roman Telezhynskyi 6d566c2715 Make fictive scene bigger in all cases.
--HG--
branch : develop
2015-12-04 10:04:43 +02:00
Roman Telezhynskyi 6cd674ec0f QGraphicsView Zooming in and out under mouse position using mouse wheel finally
works like i want.

--HG--
branch : develop
2015-12-02 20:39:25 +02:00
Roman Telezhynskyi 36704cd02e Invisible "VSimpleCurve" causes exponential growth scene size, and it causes
the program crash. Because we don't need anymore this calss i just have removed
it.

--HG--
branch : develop
2015-11-25 15:45:38 +02:00
Roman Telezhynskyi 6132153338 Move classes to VWidgets.
--HG--
branch : feature
2015-06-15 15:50:59 +03:00
Renamed from src/app/widgets/vmaingraphicsview.cpp (Browse further)