File indexing completed on 2024-05-12 04:20:15
0001 /** 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef FRAMEWIDGET_H 0010 #define FRAMEWIDGET_H 0011 0012 #include <QWidget> 0013 0014 namespace KChart { 0015 class Chart; 0016 } 0017 0018 0019 class FrameWidget : public QWidget 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit FrameWidget( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() ); 0025 0026 void paintEvent( QPaintEvent* ) override; 0027 0028 void setChart( KChart::Chart* chart ); 0029 0030 private: 0031 KChart::Chart* mChart; 0032 }; 0033 0034 0035 #endif /* FRAMEWIDGET_H */ 0036