Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
robotpkg-wip
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
robotpkg-wip
Commits
dd6eaccc
Commit
dd6eaccc
authored
10 years ago
by
Ellon Mendes
Browse files
Options
Downloads
Patches
Plain Diff
[wip/jafar-qdisplay] Add patch to fix QT keywords to allow 3rd party signal/slots libraries
parent
f5b8c4c8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jafar-qdisplay/distinfo
+1
-0
1 addition, 0 deletions
jafar-qdisplay/distinfo
jafar-qdisplay/patches/patch-ab
+92
-0
92 additions, 0 deletions
jafar-qdisplay/patches/patch-ab
with
93 additions
and
0 deletions
jafar-qdisplay/distinfo
+
1
−
0
View file @
dd6eaccc
...
...
@@ -2,3 +2,4 @@ SHA1 (jafar-qdisplay-0.2.tar.gz) = 4587d2f948f3b9142d65a0d4fd877a238911ad41
RMD160 (jafar-qdisplay-0.2.tar.gz) = d6c93e9ef0341d4fadf7af3b64673cc3324b3900
Size (jafar-qdisplay-0.2.tar.gz) = 135793 bytes
SHA1 (patch-aa) = d0f3956e716eb83f10dcc3fdc10a19f355574e12
SHA1 (patch-ab) = b1b3ea283181c67a6243b7512bcb207e88cfa3f2
This diff is collapsed.
Click to expand it.
jafar-qdisplay/patches/patch-ab
0 → 100644
+
92
−
0
View file @
dd6eaccc
Fix conflict with 3rd party signal/slot library by changing QT keywords
--- include/qdisplay/ImageView.hpp 2014-05-29 02:12:04.457979610 +0200
+++ include/qdisplay/ImageView.hpp 2014-05-29 02:14:13.389975801 +0200
@@ -77,7 +77,7 @@
/** Exports the view to different image format */
void exportView( const std::string& _fileName );
- public slots:
+ public Q_SLOTS:
void lutRandomize();
void lutGrayscale();
void lutInvertGrayscale();
--- include/qdisplay/init.hpp 2014-05-29 02:12:04.457979610 +0200
+++ include/qdisplay/init.hpp 2014-05-29 02:14:13.389975801 +0200
@@ -61,7 +61,7 @@
void (*_onExit)(SharedDataStructure*,boost::thread*) = NULL);
~QtAppStart();
- public slots:
+ public Q_SLOTS:
void display();
void onExit();
};
--- include/qdisplay/labeler.hpp 2014-05-29 02:12:04.457979610 +0200
+++ include/qdisplay/labeler.hpp 2014-05-29 02:14:13.389975801 +0200
@@ -91,7 +91,7 @@
public:
Labeler(int nimages, char** images);
~Labeler();
-public slots:
+public Q_SLOTS:
void onKeyPress(QKeyEvent *event);
void onMouseClick(QGraphicsSceneMouseEvent *mouseEvent, bool isClick);
void onMouseMove(QGraphicsSceneMouseEvent *mouseEvent);
--- include/qdisplay/Viewer.hpp 2014-05-29 02:12:04.457979610 +0200
+++ include/qdisplay/Viewer.hpp 2014-05-29 02:14:13.393975801 +0200
@@ -114,10 +114,10 @@
* Export the view to the given file name.
*/
void exportView( const std::string& fileName );
- public slots:
+ public Q_SLOTS:
void exportView();
//void updateSceneRect();
- signals:
+ Q_SIGNALS:
void onKeyPress(QKeyEvent *event);
void onMouseClick(QGraphicsSceneMouseEvent *mouseEvent, bool isClick);
void onMouseMove(QGraphicsSceneMouseEvent *mouseEvent);
--- include/qdisplay.i 2014-05-29 02:12:04.457979610 +0200
+++ include/qdisplay.i 2014-05-29 02:14:42.589974937 +0200
@@ -38,8 +38,8 @@
%include "jafar.i"
%import "jmath/jblas.i"
-#define slots
-#define signals protected
+#define Q_SLOTS
+#define Q_SIGNALS protected
#define Q_OBJECT
%include "qdisplayException.i"
--- src/Viewer.cpp 2014-05-29 02:12:04.461979610 +0200
+++ src/Viewer.cpp 2014-05-29 02:15:27.421973612 +0200
@@ -265,7 +265,7 @@
scaleView(1 / 1.2);
break;
}
- emit onKeyPress(event);
+ Q_EMIT onKeyPress(event);
}
@@ -273,7 +273,7 @@
{
QPointF dp = mouseEvent->buttonDownScreenPos(mouseEvent->button()) - mouseEvent->screenPos();
bool isClick = (std::abs(dp.x()) < 4) && (std::abs(dp.y()) < 4);
- emit viewer->onMouseClick(mouseEvent, isClick);
+ Q_EMIT viewer->onMouseClick(mouseEvent, isClick);
}
void Viewer::wheelEvent(QWheelEvent *event)
@@ -417,7 +417,7 @@
qdisplay::Viewer *viewer = dynamic_cast<qdisplay::Viewer*>(*it);
if (viewer) viewer->setTitleWithMouseCoordinates(pos.x(), pos.y());
}
- emit viewer->onMouseMove(event);
+ Q_EMIT viewer->onMouseMove(event);
QGraphicsScene::mouseMoveEvent(event);
}
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