Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qgv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
qgv
Commits
827ab400
Commit
827ab400
authored
10 years ago
by
nicolas.bergont
Browse files
Options
Downloads
Patches
Plain Diff
QT5 compatibility
parent
8da16bd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
QGVCore/QGVCore.pro
+7
-0
7 additions, 0 deletions
QGVCore/QGVCore.pro
QGVCore/QGVScene.cpp
+2
-2
2 additions, 2 deletions
QGVCore/QGVScene.cpp
QGVCore/qgv.h
+2
-0
2 additions, 0 deletions
QGVCore/qgv.h
with
11 additions
and
2 deletions
QGVCore/QGVCore.pro
+
7
−
0
View file @
827ab400
...
...
@@ -6,6 +6,13 @@
QT
+=
core
greaterThan
(
QT_MAJOR_VERSION
,
4
){
QT
+=
widgets
}
lessThan
(
QT_MAJOR_VERSION
,
5
)
{
QT
+=
gui
}
TARGET
=
QGVCore
TEMPLATE
=
lib
CONFIG
+=
shared
...
...
This diff is collapsed.
Click to expand it.
QGVCore/QGVScene.cpp
+
2
−
2
View file @
827ab400
...
...
@@ -198,7 +198,7 @@ void QGVScene::clear()
#include
<QGraphicsSceneContextMenuEvent>
void
QGVScene
::
contextMenuEvent
(
QGraphicsSceneContextMenuEvent
*
contextMenuEvent
)
{
QGraphicsItem
*
item
=
itemAt
(
contextMenuEvent
->
scenePos
());
QGraphicsItem
*
item
=
itemAt
(
contextMenuEvent
->
scenePos
()
,
QTransform
()
);
if
(
item
)
{
item
->
setSelected
(
true
);
...
...
@@ -216,7 +216,7 @@ void QGVScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent
void
QGVScene
::
mouseDoubleClickEvent
(
QGraphicsSceneMouseEvent
*
mouseEvent
)
{
QGraphicsItem
*
item
=
itemAt
(
mouseEvent
->
scenePos
());
QGraphicsItem
*
item
=
itemAt
(
mouseEvent
->
scenePos
()
,
QTransform
()
);
if
(
item
)
{
if
(
item
->
type
()
==
QGVNode
::
Type
)
...
...
This diff is collapsed.
Click to expand it.
QGVCore/qgv.h
+
2
−
0
View file @
827ab400
#ifndef QGV_H
#define QGV_H
#include
<QtGlobal>
#ifdef QGVCORE_LIB
#define QGVCORE_EXPORT Q_DECL_EXPORT
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment