Add files from zip

This commit is contained in:
2023-10-31 09:22:42 +01:00
parent 6bacdc5f6d
commit 4dae68036f
2788 changed files with 492537 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
/*****************************************************************************
* Qwt Examples - Copyright (C) 2002 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QwtAbstractLegend>
class LegendTreeView;
class QStandardItem;
class QModelIndex;
class QwtPlotItem;
class Legend : public QwtAbstractLegend
{
Q_OBJECT
public:
explicit Legend( QWidget* parent = NULL );
virtual ~Legend();
virtual void renderLegend( QPainter*,
const QRectF&, bool fillBackground ) const QWT_OVERRIDE;
virtual bool isEmpty() const QWT_OVERRIDE;
virtual int scrollExtent( Qt::Orientation ) const QWT_OVERRIDE;
Q_SIGNALS:
void checked( QwtPlotItem* plotItem, bool on, int index );
public Q_SLOTS:
virtual void updateLegend( const QVariant&,
const QList< QwtLegendData >& ) QWT_OVERRIDE;
private Q_SLOTS:
void handleClick( const QModelIndex& );
private:
void updateItem( QStandardItem*, const QwtLegendData& );
LegendTreeView* m_treeView;
};