removed getProperties() which was not implemented

This commit is contained in:
ZappoMan 2014-02-15 16:31:09 -08:00
parent f6adce255d
commit 1ddd856ca8
4 changed files with 0 additions and 19 deletions

View file

@ -114,11 +114,6 @@ void ImageOverlay::render() {
}
}
// TODO: handle only setting the included values...
QScriptValue ImageOverlay::getProperties() {
return QScriptValue();
}
// TODO: handle only setting the included values...
void ImageOverlay::setProperties(const QScriptValue& properties) {
//qDebug() << "ImageOverlay::setProperties()... properties=" << &properties;

View file

@ -45,7 +45,6 @@ public:
const xColor& getBackgroundColor() const { return _backgroundColor; }
float getAlpha() const { return _alpha; }
const QUrl& getImageURL() const { return _imageURL; }
QScriptValue getProperties();
// setters
void setVisible(bool visible) { _visible = visible; }

View file

@ -17,7 +17,6 @@ Overlays::~Overlays() {
}
void Overlays::init(QGLWidget* parent) {
qDebug() << "Overlays::init() parent=" << parent;
_parent = parent;
}
@ -38,14 +37,6 @@ unsigned int Overlays::addOverlay(const QScriptValue& properties) {
return thisID;
}
QScriptValue Overlays::getOverlayProperties(unsigned int id) {
if (!_imageOverlays.contains(id)) {
return QScriptValue();
}
ImageOverlay* thisOverlay = _imageOverlays[id];
return thisOverlay->getProperties();
}
// TODO: make multi-threaded safe
bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
if (!_imageOverlays.contains(id)) {
@ -60,7 +51,6 @@ bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
void Overlays::deleteOverlay(unsigned int id) {
if (_imageOverlays.contains(id)) {
_imageOverlays.erase(_imageOverlays.find(id));
}
}

View file

@ -38,9 +38,6 @@ public slots:
/// adds an overlay with the specific properties
unsigned int addOverlay(const QScriptValue& properties);
/// gets the current overlay properties for a specific overlay
QScriptValue getOverlayProperties(unsigned int id);
/// edits an overlay updating only the included properties, will return the identified OverlayID in case of
/// successful edit, if the input id is for an unknown overlay this function will have no effect
bool editOverlay(unsigned int id, const QScriptValue& properties);