Mercurial > projects > qtd
comparison cpp/qt_core/QModelIndex_shell.cpp @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children | 9784459f0750 |
comparison
equal
deleted
inserted
replaced
0:36fb74dc547d | 1:e78566595089 |
---|---|
1 #include <QVariant> | |
2 #include <qabstractitemmodel.h> | |
3 #include <qvariant.h> | |
4 | |
5 #include <qabstractitemmodel.h> | |
6 | |
7 #include "qtd_core.h" | |
8 | |
9 extern "C" DLL_PUBLIC void __qtd_QModelIndex_destructor(void *ptr) | |
10 { | |
11 delete (QModelIndex *)ptr; | |
12 } | |
13 | |
14 // ---externC--- | |
15 // QModelIndex::QModelIndex() | |
16 extern "C" DLL_PUBLIC void* __qtd_QModelIndex_QModelIndex | |
17 () | |
18 { | |
19 QModelIndex *__qt_this = new QModelIndex(); | |
20 return (void *) __qt_this; | |
21 | |
22 } | |
23 | |
24 // QModelIndex::QModelIndex(const QModelIndex & other) | |
25 extern "C" DLL_PUBLIC void* __qtd_QModelIndex_QModelIndex_QModelIndex | |
26 (QModelIndex other0) | |
27 { | |
28 QModelIndex *__qt_this = new QModelIndex((const QModelIndex& )other0); | |
29 return (void *) __qt_this; | |
30 | |
31 } | |
32 | |
33 // QModelIndex::child(int row, int column) const | |
34 extern "C" DLL_PUBLIC QModelIndex __qtd_QModelIndex_child_int_int | |
35 (void* __this_nativeId, | |
36 int row0, | |
37 int column1) | |
38 { | |
39 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
40 QModelIndex __qt_return_value = __qt_this->child((int )row0, (int )column1); | |
41 | |
42 | |
43 return __qt_return_value; | |
44 } | |
45 | |
46 // QModelIndex::column() const | |
47 extern "C" DLL_PUBLIC int __qtd_QModelIndex_column | |
48 (void* __this_nativeId) | |
49 { | |
50 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
51 int __qt_return_value = __qt_this->column(); | |
52 | |
53 int __java_return_value = __qt_return_value; | |
54 | |
55 return __java_return_value; | |
56 } | |
57 | |
58 // QModelIndex::data(int role) const | |
59 extern "C" DLL_PUBLIC void* __qtd_QModelIndex_data_int | |
60 (void* __this_nativeId, | |
61 int role0) | |
62 { | |
63 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
64 QVariant __qt_return_value = __qt_this->data((int )role0); | |
65 | |
66 QVariant *__java_return_value = new QVariant(__qt_return_value); | |
67 | |
68 return __java_return_value; | |
69 } | |
70 | |
71 // QModelIndex::flags() const | |
72 extern "C" DLL_PUBLIC int __qtd_QModelIndex_flags | |
73 (void* __this_nativeId) | |
74 { | |
75 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
76 int __qt_return_value = __qt_this->flags(); | |
77 | |
78 int __java_return_value = __qt_return_value; | |
79 | |
80 return __java_return_value; | |
81 } | |
82 | |
83 // QModelIndex::internalId() const | |
84 extern "C" DLL_PUBLIC qint64 __qtd_QModelIndex_internalId | |
85 (void* __this_nativeId) | |
86 { | |
87 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
88 qint64 __qt_return_value = __qt_this->internalId(); | |
89 | |
90 qint64 __java_return_value = __qt_return_value; | |
91 | |
92 return __java_return_value; | |
93 } | |
94 | |
95 // QModelIndex::internalPointer() const | |
96 extern "C" DLL_PUBLIC void* __qtd_QModelIndex_internalPointer | |
97 (void* __this_nativeId) | |
98 { | |
99 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
100 void* __qt_return_value = __qt_this->internalPointer(); | |
101 | |
102 void* __java_return_value = (void*) __qt_return_value;// qtjambi_from_cpointer | |
103 | |
104 return __java_return_value; | |
105 } | |
106 | |
107 // QModelIndex::isValid() const | |
108 extern "C" DLL_PUBLIC bool __qtd_QModelIndex_isValid | |
109 (void* __this_nativeId) | |
110 { | |
111 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
112 bool __qt_return_value = __qt_this->isValid(); | |
113 | |
114 bool __java_return_value = __qt_return_value; | |
115 | |
116 return __java_return_value; | |
117 } | |
118 | |
119 // QModelIndex::model() const | |
120 extern "C" DLL_PUBLIC void* __qtd_QModelIndex_model | |
121 (void* __this_nativeId) | |
122 { | |
123 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
124 const QAbstractItemModel* __qt_return_value = __qt_this->model(); | |
125 | |
126 void* __java_return_value = (void*) __qt_return_value; | |
127 | |
128 return __java_return_value; | |
129 } | |
130 | |
131 // QModelIndex::operator<(const QModelIndex & other) const | |
132 extern "C" DLL_PUBLIC bool __qtd_QModelIndex_operator_less_QModelIndex | |
133 (void* __this_nativeId, | |
134 QModelIndex other0) | |
135 { | |
136 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
137 bool __qt_return_value = __qt_this->operator<((const QModelIndex& )other0); | |
138 | |
139 bool __java_return_value = __qt_return_value; | |
140 | |
141 return __java_return_value; | |
142 } | |
143 | |
144 // QModelIndex::operator==(const QModelIndex & other) const | |
145 extern "C" DLL_PUBLIC bool __qtd_QModelIndex_operator_equal_QModelIndex | |
146 (void* __this_nativeId, | |
147 QModelIndex other0) | |
148 { | |
149 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
150 bool __qt_return_value = __qt_this->operator==((const QModelIndex& )other0); | |
151 | |
152 bool __java_return_value = __qt_return_value; | |
153 | |
154 return __java_return_value; | |
155 } | |
156 | |
157 // QModelIndex::parent() const | |
158 extern "C" DLL_PUBLIC QModelIndex __qtd_QModelIndex_parent | |
159 (void* __this_nativeId) | |
160 { | |
161 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
162 QModelIndex __qt_return_value = __qt_this->parent(); | |
163 | |
164 | |
165 return __qt_return_value; | |
166 } | |
167 | |
168 // QModelIndex::row() const | |
169 extern "C" DLL_PUBLIC int __qtd_QModelIndex_row | |
170 (void* __this_nativeId) | |
171 { | |
172 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
173 int __qt_return_value = __qt_this->row(); | |
174 | |
175 int __java_return_value = __qt_return_value; | |
176 | |
177 return __java_return_value; | |
178 } | |
179 | |
180 // QModelIndex::sibling(int row, int column) const | |
181 extern "C" DLL_PUBLIC QModelIndex __qtd_QModelIndex_sibling_int_int | |
182 (void* __this_nativeId, | |
183 int row0, | |
184 int column1) | |
185 { | |
186 QModelIndex *__qt_this = (QModelIndex *) __this_nativeId; | |
187 QModelIndex __qt_return_value = __qt_this->sibling((int )row0, (int )column1); | |
188 | |
189 | |
190 return __qt_return_value; | |
191 } | |
192 | |
193 // ---externC---end | |
194 // Field accessors | |
195 | |
196 |