KD Chart API Documentation  3.1
kdganttstyleoptionganttitem.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 KDGANTTSTYLEOPTIONGANTTITEM_H
12 #define KDGANTTSTYLEOPTIONGANTTITEM_H
13 
14 #include "kdganttglobal.h"
15 
16 #include <QDebug>
17 #include <QRectF>
18 #include <QStyleOptionViewItem>
19 
20 namespace KDGantt {
21 class AbstractGrid;
22 class KDGANTT_EXPORT StyleOptionGanttItem : public QStyleOptionViewItem
23 {
24 public:
25  enum Position
26  {
30  Hidden
31  };
32 
35  StyleOptionGanttItem &operator=(const StyleOptionGanttItem &other);
36 
37  QRectF boundingRect;
38  QRectF itemRect;
39  Position displayPosition = Left;
40  AbstractGrid *grid = nullptr;
41  QString text;
42 };
43 }
44 
45 #ifndef QT_NO_DEBUG_STREAM
46 
47 KDGANTT_EXPORT QDebug operator<<(QDebug dbg, KDGantt::StyleOptionGanttItem::Position p);
48 KDGANTT_EXPORT QDebug operator<<(QDebug dbg, const KDGantt::StyleOptionGanttItem &s);
49 
50 #endif /* QT_NO_DEBUG_STREAM */
51 
52 #endif /* KDGANTTSTYLEOPTIONGANTTITEM_H */
Abstract baseclass for grids.
QStyleOption subclass for gantt items.
Position
This enum is used to describe where the Qt::DisplayRole (the label) should be located relative to the...
QRectF boundingRect
Contains the bounding rectangle for the item.
QString text
Contains a string printed to the item.
QRectF itemRect
Contains the "active" item rectangle that corresponds to the values from the model.
Contains KDGantt macros.
KDGANTT_EXPORT QDebug operator<<(QDebug dbg, KDGantt::StyleOptionGanttItem::Position p)

© 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