36 lines
743 B
C++
36 lines
743 B
C++
#include "qcustomplot.h"
|
|
|
|
class QCP_LIB_DECL QCPSizeHandle : public QCPAbstractItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QCPSizeHandle(QCustomPlot *parentPlot);
|
|
~QCPSizeHandle();
|
|
|
|
void setBrush(const QBrush &brush);
|
|
void setSelectedBrush(const QBrush &brush);
|
|
void setHoveredBrush(const QBrush &brush);
|
|
void setSize(double size);
|
|
|
|
virtual double selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const Q_DECL_OVERRIDE;
|
|
virtual void draw(QCPPainter *painter) Q_DECL_OVERRIDE;
|
|
|
|
QBrush mainBrush() const;
|
|
|
|
QCPItemPosition * const position;
|
|
|
|
public slots:
|
|
|
|
|
|
protected:
|
|
QBrush mBrush;
|
|
QBrush mSelectedBrush;
|
|
QBrush mHoveredBrush;
|
|
//bool mSelectable;
|
|
double mSize;
|
|
bool mHovered;
|
|
|
|
|
|
};
|
|
|