KD Chart API Documentation
3.1
Loading...
Searching...
No Matches
source
src
KDGantt
kdganttproxymodel.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 KDGANTTPROXYMODEL_H
12
#define KDGANTTPROXYMODEL_H
13
14
#include "
kdganttforwardingproxymodel.h
"
15
16
namespace
KDGantt
{
17
class
KDGANTT_EXPORT
ProxyModel
:
public
ForwardingProxyModel
18
{
19
Q_OBJECT
20
Q_DISABLE_COPY(
ProxyModel
)
21
KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC
(
ProxyModel
)
22
public
:
23
explicit
ProxyModel
(
QObject
*parent =
nullptr
);
24
~ProxyModel
()
override
;
25
26
void
setColumn(
int
ganttrole,
int
col);
27
void
setRole(
int
ganttrole,
int
role);
28
29
int
column(
int
ganttrole)
const
;
30
int
role(
int
ganttrole)
const
;
31
32
#if 0
33
void
setCalendarMode(
bool
enable );
34
bool
calendarMode()
const
;
35
#endif
36
37
/*reimp*/
QModelIndex
mapFromSource(
const
QModelIndex
&idx)
const override
;
38
/*reimp*/
QModelIndex
mapToSource(
const
QModelIndex
&proxyIdx)
const override
;
39
40
/*reimp*/
int
rowCount(
const
QModelIndex
&idx)
const override
;
41
/*reimp*/
int
columnCount(
const
QModelIndex
&idx)
const override
;
42
43
/*reimp*/
QVariant
data(
const
QModelIndex
&idx,
int
role =
Qt::DisplayRole
)
const override
;
44
/*reimp*/
bool
setData(
const
QModelIndex
&idx,
const
QVariant
&value,
int
role =
Qt::EditRole
)
override
;
45
};
46
}
47
48
#endif
/* KDGANTTPROXYMODEL_H */
KDGantt::ForwardingProxyModel
Definition
kdganttforwardingproxymodel.h:20
KDGantt::ProxyModel
Definition
kdganttproxymodel.h:18
kdganttforwardingproxymodel.h
KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
Definition
kdganttglobal.h:146
KDGantt
Definition
kdganttabstractgrid.h:24
QModelIndex
QObject
Qt::DisplayRole
DisplayRole
QVariant
© 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