Skip to content

Commit

Permalink
Change return type of Layer.addImage to void. Re #1037.
Browse files Browse the repository at this point in the history
An ImageWidget is not a QObject, so our proxy method won't work.
Ensure that pointers to ImageWidgets created in C++ cannot 'get out'.
The addImage method can still be called with an ImageWidget constructed
in python, or a filename.
  • Loading branch information
RussellTaylor committed Jan 4, 2012
1 parent 6c05dfb commit 77d19bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/qti.sip
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ public:
void addHistogram(Matrix*);
void addArrow(ArrowMarker*);

ImageMarker* addImage(ImageMarker*);
ImageMarker* addImage(const QString& fileName);
void addImage(ImageMarker*);
void addImage(const QString& fileName);

void setTitle(const QString& t);
void setTitleFont(const QFont &fnt);
Expand Down

0 comments on commit 77d19bb

Please sign in to comment.