diff --git a/Code/Mantid/MantidPlot/CMakeLists.txt b/Code/Mantid/MantidPlot/CMakeLists.txt index 57390c80b5c1b37d5efb59d425ccae9180659654..9d8c0757f97f80e0a24a4d8fdf8ecf49b2b1f013 100644 --- a/Code/Mantid/MantidPlot/CMakeLists.txt +++ b/Code/Mantid/MantidPlot/CMakeLists.txt @@ -558,6 +558,7 @@ set ( QTIPLOT_MOC_FILES src/ApplicationWindow.h src/FunctionDialog.h src/Graph3D.h src/Graph.h + src/Grid.h src/ImageDialog.h src/ImageExportDialog.h src/ImportASCIIDialog.h diff --git a/Code/Mantid/MantidPlot/src/Grid.cpp b/Code/Mantid/MantidPlot/src/Grid.cpp index d690c51c13ae0822c129888406f24b67756381f0..caf52111f1a92675077e6204f032ad9d285989c5 100644 --- a/Code/Mantid/MantidPlot/src/Grid.cpp +++ b/Code/Mantid/MantidPlot/src/Grid.cpp @@ -36,7 +36,7 @@ #include <QPainter> -Grid::Grid() : QwtPlotGrid(), +Grid::Grid() : QObject(), QwtPlotGrid(), d_maj_pen_y(QPen(Qt::blue, 0.5, Qt::SolidLine)), d_min_pen_y(QPen(Qt::gray, 0.4, Qt::DotLine)), mrkX(-1), diff --git a/Code/Mantid/MantidPlot/src/Grid.h b/Code/Mantid/MantidPlot/src/Grid.h index 65c2a7a1c54d156b06f50aadf03597d549f00999..8e099f335ab2a9a650ed83752cf15446831fa2c5 100644 --- a/Code/Mantid/MantidPlot/src/Grid.h +++ b/Code/Mantid/MantidPlot/src/Grid.h @@ -33,8 +33,9 @@ #include <qwt_plot_grid.h> #include <qwt_plot_marker.h> -class Grid : public QwtPlotGrid +class Grid : public QObject, public QwtPlotGrid // Made a QObject just for our python proxies { + Q_OBJECT public: Grid(); diff --git a/Code/Mantid/MantidPlot/src/qti.sip b/Code/Mantid/MantidPlot/src/qti.sip index f6e103fd45f33c091d1ebc1beb8705237435c888..79d6c6a5bc8964e6295bb4ed2bd491e841ef7d56 100644 --- a/Code/Mantid/MantidPlot/src/qti.sip +++ b/Code/Mantid/MantidPlot/src/qti.sip @@ -481,7 +481,7 @@ private: ImageMarker(const ImageMarker&); }; -class LegendWidget // : QWidget /PyName=Legend/ +class LegendWidget : QObject // : QWidget /PyName=Legend/ { %TypeHeaderCode #include "src/LegendWidget.h" @@ -586,7 +586,7 @@ private: }; -class Grid // : QwtPlotGrid +class Grid : QObject // : QwtPlotGrid { %TypeHeaderCode #include "src/Grid.h"