comparison qt/d2/qt/core/QModelIndex.d @ 295:463563fc9e17 signals

more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
author eldar
date Sun, 22 Nov 2009 11:01:19 +0000
parents f9559a957be9
children
comparison
equal deleted inserted replaced
294:bb37b0ed94c9 295:463563fc9e17
3 public import qt.QGlobal; 3 public import qt.QGlobal;
4 private import qt.core.QObject; 4 private import qt.core.QObject;
5 5
6 // automatic imports------------- 6 // automatic imports-------------
7 //private import qt.core.QVariant; 7 //private import qt.core.QVariant;
8 //private import qt.core.QAbstractItemModel; 8 private import qt.core.QAbstractItemModel;
9 public import qt.core.Qt; 9 public import qt.core.Qt;
10 10
11 11
12 public struct QModelIndex 12 public struct QModelIndex
13 { 13 {
49 } 49 }
50 50
51 public final bool isValid() const { 51 public final bool isValid() const {
52 return __qtd_QModelIndex_isValid(cast(void*)&this); 52 return __qtd_QModelIndex_isValid(cast(void*)&this);
53 } 53 }
54 /* 54
55 public final QAbstractItemModel model() { 55 public final QAbstractItemModel model() {
56 // void* __qt_return_value = __qtd_QModelIndex_model(&this); 56 // void* __qt_return_value = __qtd_QModelIndex_model(&this);
57 void* __qt_return_value = m; 57 void* __qt_return_value = m;
58 if (__qt_return_value is null) 58 if (__qt_return_value is null)
59 return null; 59 return null;
60 void* d_obj = qtd_get_d_qobject(__qt_return_value); 60 void* d_obj = qtd_get_d_qobject(__qt_return_value);
61 return cast(QAbstractItemModel) d_obj; 61 return cast(QAbstractItemModel) d_obj;
62 } 62 }
63 */ 63
64 private final bool operator_less(QModelIndex other) { 64 private final bool operator_less(QModelIndex other) {
65 return __qtd_QModelIndex_operator_less_QModelIndex(&this, other); 65 return __qtd_QModelIndex_operator_less_QModelIndex(&this, other);
66 } 66 }
67 67
68 private final bool operator_equal(QModelIndex other) { 68 private final bool operator_equal(QModelIndex other) {
77 return __qtd_QModelIndex_row(cast(void*)&this); 77 return __qtd_QModelIndex_row(cast(void*)&this);
78 } 78 }
79 79
80 public final QModelIndex sibling(int row, int column) { 80 public final QModelIndex sibling(int row, int column) {
81 return __qtd_QModelIndex_sibling_int_int(&this, row, column); 81 return __qtd_QModelIndex_sibling_int_int(&this, row, column);
82 }
83
84 public alias void __isNativeValueType;
85
86 struct QTypeInfo
87 {
88 enum bool isComplex = true;
89 enum bool isStatic = false;
90 enum bool isLarge = true;
91 enum bool isPointer = false;
92 enum bool isDummy = false;
82 } 93 }
83 94
84 private: 95 private:
85 int r; 96 int r;
86 int c; 97 int c;
112 private extern(C) QModelIndex __qtd_QModelIndex_parent(void* __this_nativeId); 123 private extern(C) QModelIndex __qtd_QModelIndex_parent(void* __this_nativeId);
113 private extern(C) int __qtd_QModelIndex_row(void* __this_nativeId); 124 private extern(C) int __qtd_QModelIndex_row(void* __this_nativeId);
114 private extern(C) QModelIndex __qtd_QModelIndex_sibling_int_int(void* __this_nativeId, 125 private extern(C) QModelIndex __qtd_QModelIndex_sibling_int_int(void* __this_nativeId,
115 int row0, 126 int row0,
116 int column1); 127 int column1);
117 // Just the private functions for abstract functions implemeneted in superclasses 128
118
119
120
121 // Virtual Dispatch functions