KD Chart API Documentation
3.1
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
h
i
k
l
o
p
q
s
t
v
Functions
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
k
m
n
p
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
g
h
i
l
m
o
p
r
s
t
Enumerator
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
y
Properties
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
c
d
f
g
i
k
l
m
n
o
p
q
r
s
t
u
w
Variables
Typedefs
Enumerations
Enumerator
Macros
a
d
h
i
k
m
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
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
© 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