diff --git a/jafar-qdisplay/distinfo b/jafar-qdisplay/distinfo index a18709b1d03e36155c041d685761f9fa04b4fe56..75530cc7677ad510e4d7888ffc0c1fce240c73cc 100644 --- a/jafar-qdisplay/distinfo +++ b/jafar-qdisplay/distinfo @@ -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 diff --git a/jafar-qdisplay/patches/patch-ab b/jafar-qdisplay/patches/patch-ab new file mode 100644 index 0000000000000000000000000000000000000000..559b958c2447c3886946732154cd4ee7909076cd --- /dev/null +++ b/jafar-qdisplay/patches/patch-ab @@ -0,0 +1,92 @@ +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); + } +