X-Git-Url: http://git.maemo.org/git/?p=mardrone;a=blobdiff_plain;f=mardrone%2Fgauge.cpp;fp=mardrone%2Fgauge.cpp;h=0000000000000000000000000000000000000000;hp=f057263a310439a2bcebe34d126e96a0e8257984;hb=f19da612ad0dd01a6f6339386625ce2bdc259220;hpb=196f6d56fb98af5849cc98d389de421822d3d5e0 diff --git a/mardrone/gauge.cpp b/mardrone/gauge.cpp deleted file mode 100644 index f057263..0000000 --- a/mardrone/gauge.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/*================================================================== - ! - ! mardrone application AR-Drone for MeeGo - - ! Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). - ! All rights reserved. - ! - ! Author:Kate Alhola kate.alhola@nokia.com - ! - ! GNU Lesser General Public License Usage - ! This file may be used under the terms of the GNU Lesser - ! General Public License version 2.1 as published by the Free Software - ! Foundation and appearing in the file LICENSE.LGPL included in the - ! packaging of this file. Please review the following information to - ! ensure the GNU Lesser General Public License version 2.1 requirements - ! will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. - ! - ! - ! - *===================================================================*/ - -#include "gauge.h" -#include "qgraphicswidget.h" -#include "QGraphicsItem" -#include -#include - -Gauge::Gauge(QGraphicsItem *parent) : - QGraphicsWidget(parent) -{ - qDebug() << "Gauge::Gauge()"; -} -#if 1 -void Gauge::paint(QPainter *painter, - const QStyleOptionGraphicsItem *option, - QWidget *widget) - { - - } -#endif -void Gauge::setValue(float val_) -{ - m_value=val_; - update(boundingRect()); // Value updated, schedule redtaw -}; -float Gauge::value() -{ - return m_value; -}; - -QRectF Gauge::boundingRect() const - { - return QRectF(0.0,0.0,size().width(),size().height()); - }