KD Chart API Documentation  3.1
ChartGraphicsItem.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Chart library.
4 **
5 ** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef CHARTGRAPHICSITEM_H
12 #define CHARTGRAPHICSITEM_H
13 
14 #include <QGraphicsPolygonItem>
15 
16 namespace KDChart {
17 
22 class ChartGraphicsItem : public QGraphicsPolygonItem
23 {
24 public:
25  enum
26  {
27  Type = UserType + 1
28  };
29 
31 
32  ChartGraphicsItem(int row, int column);
33 
34  int row() const
35  {
36  return m_row;
37  }
38  int column() const
39  {
40  return m_column;
41  }
42  int type() const override
43  {
44  return Type;
45  }
46 
47 private:
48  int m_row = -1;
49  int m_column = -1;
50 };
51 }
52 
53 #endif
Graphics item used inside of the ReverseMapper.
int type() const override

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1