From 60565dafcbb8f0a81ca47aa2e5c8d18f30c405a7 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 14 Feb 2014 14:30:58 +0100 Subject: [PATCH] get rid of elementAtPoint() was a stub, never implemented because qtsvg doesn't support it (and never will) --- src/plasma/svg.cpp | 18 ------------------ src/plasma/svg.h | 12 ------------ 2 files changed, 30 deletions(-) diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index c487a64fd..9ec2aa5dc 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -754,24 +754,6 @@ bool Svg::hasElement(const QString &elementId) const return d->elementRect(elementId).isValid(); } -QString Svg::elementAtPoint(const QPoint &point) const -{ - Q_UNUSED(point) - - return QString(); -/* -FIXME: implement when Qt can support us! - d->createRenderer(); - QSizeF naturalSize = d->renderer->defaultSize(); - qreal dx = d->size.width() / naturalSize.width(); - qreal dy = d->size.height() / naturalSize.height(); - //qDebug() << point << "is really" - // << QPoint(point.x() *dx, naturalSize.height() - point.y() * dy); - - return QString(); // d->renderer->elementAtPoint(QPoint(point.x() *dx, naturalSize.height() - point.y() * dy)); - */ -} - bool Svg::isValid() const { if (d->path.isNull() && d->themePath.isNull()) { diff --git a/src/plasma/svg.h b/src/plasma/svg.h index 9bb2ee9f5..01d98f8f1 100644 --- a/src/plasma/svg.h +++ b/src/plasma/svg.h @@ -235,18 +235,6 @@ class PLASMA_EXPORT Svg : public QObject **/ Q_INVOKABLE bool hasElement(const QString &elementId) const; - /** - * Returns the element (by id) at the given point. - * - * An empty string is returned if there no element is at @p point. - * - * NOTE: not implemented! This will currently return an empty string! - * - * @param point a point in SVG co-ordinates - * @return an empty string - */ - Q_INVOKABLE QString elementAtPoint(const QPoint &point) const; - /** * Check whether this object is backed by a valid SVG file. *