From d9d50e7b4662224c0ec2e1976015870705b7aa32 2012-05-25 12:49:45 From: sauimone Date: 2012-05-25 12:49:45 Subject: [PATCH] removed old separator.h and .cpp files --- diff --git a/src/barchart/separator.cpp b/src/barchart/separator.cpp deleted file mode 100644 index 306ac1e..0000000 --- a/src/barchart/separator.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Digia Plc -** All rights reserved. -** For any questions to Digia, please use contact form at http://qt.digia.com -** -** This file is part of the Qt Commercial Charts Add-on. -** -** $QT_BEGIN_LICENSE$ -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. -** -** If you have questions regarding the use of this file, please use -** contact form at http://qt.digia.com -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "separator_p.h" -#include -#include - -QTCOMMERCIALCHART_BEGIN_NAMESPACE - -Separator::Separator(QGraphicsItem *parent) - : QGraphicsItem(parent) -{ -} - -void Separator::setPos(qreal x, qreal y) -{ - mXpos = x; - mYpos = y; -} - -void Separator::setColor(QColor color) -{ - mColor = color; -} - -void Separator::setSize(const QSizeF &size) -{ - mWidth = size.width(); - mHeight = size.height(); -} - -void Separator::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) -{ - Q_UNUSED(option) - Q_UNUSED(widget) - - if (isVisible()) { - QPen pen(mColor); - painter->setPen(pen); - painter->drawLine(mXpos,mYpos,mXpos,mHeight); - } -} - -QRectF Separator::boundingRect() const -{ - QRectF r(mXpos,mYpos,mWidth,mHeight); - return r; -} - - -QTCOMMERCIALCHART_END_NAMESPACE diff --git a/src/barchart/separator_p.h b/src/barchart/separator_p.h deleted file mode 100644 index b01ea6a..0000000 --- a/src/barchart/separator_p.h +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Digia Plc -** All rights reserved. -** For any questions to Digia, please use contact form at http://qt.digia.com -** -** This file is part of the Qt Commercial Charts Add-on. -** -** $QT_BEGIN_LICENSE$ -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. -** -** If you have questions regarding the use of this file, please use -** contact form at http://qt.digia.com -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SEPARATOR_H -#define SEPARATOR_H - -#include "chartitem_p.h" - -QTCOMMERCIALCHART_BEGIN_NAMESPACE - -class Separator : public QGraphicsItem -{ -public: - Separator(QGraphicsItem *parent = 0); - - void setPos(qreal x, qreal y); - void setColor(QColor color); - - // From ChartItem - void setSize(const QSizeF &size); - - // From QGraphicsItem - void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - QRectF boundingRect() const; - -private: - - QColor mColor; - qreal mXpos; - qreal mYpos; - qreal mHeight; - qreal mWidth; - -}; - -QTCOMMERCIALCHART_END_NAMESPACE - -#endif // SEPARATOR_H