annotate cpp/qt_core/QModelIndex_shell.cpp @ 357:9784459f0750

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