Mercurial > projects > qtd
comparison qt/d1/qt/core/QModelIndex.d @ 254:34a37904ff77
(none)
author | maxter |
---|---|
date | Sun, 30 Aug 2009 10:59:56 +0000 |
parents | 37eed70de029 |
children |
comparison
equal
deleted
inserted
replaced
253:073b9153ed8a | 254:34a37904ff77 |
---|---|
1 module qt.core.QModelIndex; | 1 module qt.core.QModelIndex; |
2 | 2 |
3 public import qt.QGlobal; | 3 public import qt.QGlobal; |
4 private import qt.QtDObject; | 4 private import qt.QtdObject; |
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; |
33 return __qtd_QModelIndex_column(this); | 33 return __qtd_QModelIndex_column(this); |
34 } | 34 } |
35 | 35 |
36 public final QVariant data(int role = 0) { | 36 public final QVariant data(int role = 0) { |
37 void* __qt_return_value = __qtd_QModelIndex_data_int(this, role); | 37 void* __qt_return_value = __qtd_QModelIndex_data_int(this, role); |
38 return new QVariant(__qt_return_value, false); | 38 return new QVariant(__qt_return_value); |
39 } | 39 } |
40 | 40 |
41 public final int flags() { | 41 public final int flags() { |
42 return __qtd_QModelIndex_flags(this); | 42 return __qtd_QModelIndex_flags(this); |
43 } | 43 } |
62 public final QAbstractItemModel model() { | 62 public final QAbstractItemModel model() { |
63 // void* __qt_return_value = __qtd_QModelIndex_model(this); | 63 // void* __qt_return_value = __qtd_QModelIndex_model(this); |
64 void* __qt_return_value = m; | 64 void* __qt_return_value = m; |
65 if (__qt_return_value is null) | 65 if (__qt_return_value is null) |
66 return null; | 66 return null; |
67 void* d_obj = __QObject_entity(__qt_return_value); | 67 void* d_obj = qtd_get_d_qobject(__qt_return_value); |
68 return cast(QAbstractItemModel) d_obj; | 68 return cast(QAbstractItemModel) d_obj; |
69 } | 69 } |
70 | 70 |
71 private final bool operator_less(QModelIndex other) { | 71 private final bool operator_less(QModelIndex other) { |
72 return __qtd_QModelIndex_operator_less_QModelIndex(this, other); | 72 return __qtd_QModelIndex_operator_less_QModelIndex(this, other); |