mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
removed getProperties() which was not implemented
This commit is contained in:
parent
f6adce255d
commit
1ddd856ca8
4 changed files with 0 additions and 19 deletions
|
@ -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...
|
// TODO: handle only setting the included values...
|
||||||
void ImageOverlay::setProperties(const QScriptValue& properties) {
|
void ImageOverlay::setProperties(const QScriptValue& properties) {
|
||||||
//qDebug() << "ImageOverlay::setProperties()... properties=" << &properties;
|
//qDebug() << "ImageOverlay::setProperties()... properties=" << &properties;
|
||||||
|
|
|
@ -45,7 +45,6 @@ public:
|
||||||
const xColor& getBackgroundColor() const { return _backgroundColor; }
|
const xColor& getBackgroundColor() const { return _backgroundColor; }
|
||||||
float getAlpha() const { return _alpha; }
|
float getAlpha() const { return _alpha; }
|
||||||
const QUrl& getImageURL() const { return _imageURL; }
|
const QUrl& getImageURL() const { return _imageURL; }
|
||||||
QScriptValue getProperties();
|
|
||||||
|
|
||||||
// setters
|
// setters
|
||||||
void setVisible(bool visible) { _visible = visible; }
|
void setVisible(bool visible) { _visible = visible; }
|
||||||
|
|
|
@ -17,7 +17,6 @@ Overlays::~Overlays() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Overlays::init(QGLWidget* parent) {
|
void Overlays::init(QGLWidget* parent) {
|
||||||
qDebug() << "Overlays::init() parent=" << parent;
|
|
||||||
_parent = parent;
|
_parent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,14 +37,6 @@ unsigned int Overlays::addOverlay(const QScriptValue& properties) {
|
||||||
return thisID;
|
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
|
// TODO: make multi-threaded safe
|
||||||
bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
|
bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
|
||||||
if (!_imageOverlays.contains(id)) {
|
if (!_imageOverlays.contains(id)) {
|
||||||
|
@ -60,7 +51,6 @@ bool Overlays::editOverlay(unsigned int id, const QScriptValue& properties) {
|
||||||
void Overlays::deleteOverlay(unsigned int id) {
|
void Overlays::deleteOverlay(unsigned int id) {
|
||||||
if (_imageOverlays.contains(id)) {
|
if (_imageOverlays.contains(id)) {
|
||||||
_imageOverlays.erase(_imageOverlays.find(id));
|
_imageOverlays.erase(_imageOverlays.find(id));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,6 @@ public slots:
|
||||||
/// adds an overlay with the specific properties
|
/// adds an overlay with the specific properties
|
||||||
unsigned int addOverlay(const QScriptValue& 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
|
/// 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
|
/// 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);
|
bool editOverlay(unsigned int id, const QScriptValue& properties);
|
||||||
|
|
Loading…
Reference in a new issue