KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
kdganttabstractrowcontroller.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 KDGANTTABSTRACTROWCONTROLLER_H
12#define KDGANTTABSTRACTROWCONTROLLER_H
13
14#include "kdganttglobal.h"
15#include <QPair>
16
17QT_BEGIN_NAMESPACE
18class QModelIndex;
19QT_END_NAMESPACE
20
21namespace KDGantt {
22class KDGANTT_EXPORT AbstractRowController
23{
24public:
26 virtual ~AbstractRowController();
27
28 virtual int headerHeight() const = 0;
29 virtual int maximumItemHeight() const = 0;
30 virtual int totalHeight() const = 0;
31
32 virtual bool isRowVisible(const QModelIndex &idx) const = 0;
33 virtual bool isRowExpanded(const QModelIndex &idx) const = 0;
34 virtual Span rowGeometry(const QModelIndex &idx) const = 0;
35
36 virtual QModelIndex indexAt(int height) const = 0;
37 virtual QModelIndex indexAbove(const QModelIndex &idx) const = 0;
38 virtual QModelIndex indexBelow(const QModelIndex &idx) const = 0;
39};
40}
41
42#endif /* KDGANTTABSTRACTROWCONTROLLER_H */
Abstract baseclass for row controllers.
virtual QModelIndex indexAbove(const QModelIndex &idx) const =0
virtual bool isRowExpanded(const QModelIndex &idx) const =0
virtual int totalHeight() const =0
virtual int maximumItemHeight() const =0
virtual bool isRowVisible(const QModelIndex &idx) const =0
virtual QModelIndex indexBelow(const QModelIndex &idx) const =0
virtual int headerHeight() const =0
virtual Span rowGeometry(const QModelIndex &idx) const =0
virtual QModelIndex indexAt(int height) const =0
A class representing a start point and a length.
Contains KDGantt macros.

© 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 on Thu Apr 11 2024 00:04:50 for KD Chart API Documentation by doxygen 1.9.8