Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit585f8d9

Browse files
update submodule
1 parentef7c4df commit585f8d9

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

‎src/native/QmlNet

SubmoduleQmlNet updated26 files

‎src/net/Qml.Net/QAbstractItemModel.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,77 +116,108 @@ public QAbstractItemModel()
116116
Interop.NetAbstractItemModel.SetRoleNames(Handle,roleNamesDelPtr);
117117
}
118118
}
119+
/// Flags for a given QModelIndex.
119120
publicvirtualintFlags(QModelIndexindex){
120121
returnflagsDel(index.Handle);
121122
}
123+
/// The data for the given QModelIndex and role.
122124
publicvirtualobjectData(QModelIndexindex,introle){
123125
varobj=dataDel(index.Handle,role);
124126
varvariant=newInternal.Qml.NetVariant(obj,true);
125127
returnvariant.AsObject();
126128
}
129+
/// The data for the header in a specific section and orientation and role.
127130
publicvirtualobjectHeaderData(intsection,intorientation,introle){
128131
varobj=headerDataDel(section,orientation,role);
129132
varvariant=newInternal.Qml.NetVariant(obj,true);
130133
returnvariant.AsObject();
131134
}
135+
/// How many rows the model has under the given parent.
132136
publicvirtualintRowCount(QModelIndexparent){
133137
returnrowCountDel(parent.Handle);
134138
}
139+
/// How many columns the model has.
135140
publicvirtualintColumnCount(QModelIndexparent){
136141
returncolumnCountDel(parent.Handle);
137142
}
143+
/// Creates a QModelIndex for the given row + column + parent index.
138144
publicvirtualQModelIndexIndex(introw,intcolumn,QModelIndexparent){
139145
returnnewQModelIndex(indexDel(row,column,parent.Handle),true);
140146
}
147+
/// Gets the parent index of a child index.
141148
publicvirtualQModelIndexParent(QModelIndexchild){
142149
returnnewQModelIndex(parentDel(child.Handle),true);
143150
}
144151
protectedoverridevoidDisposeUnmanaged(IntPtrptr)
145152
{
146153
Interop.NetAbstractItemModel.Destroy(ptr);
147154
}
155+
/// Signals the start of inserting columns into the model.
156+
/// You must call this function before inserting more columns into the model.
148157
protectedvoidBeginInsertColumns(QModelIndexparent,intfrom,intto){
149158
Interop.NetAbstractItemModel.BeginInsertColumns(Handle,parent.Handle,from,to);
150159
}
160+
/// Signals the end of inserting columns into the model.
151161
protectedvoidEndInsertColumns(){
152162
Interop.NetAbstractItemModel.EndInsertColumns(Handle);
153163
}
164+
/// Signals the start of removing columns from the model.
165+
/// You must call this function before removing columns into the model.
154166
protectedvoidBeginRemoveColumns(QModelIndexparent,intfrom,intto){
155167
Interop.NetAbstractItemModel.BeginRemoveColumns(Handle,parent.Handle,from,to);
156168
}
169+
/// Signals the end of removing columns from the model.
157170
protectedvoidEndRemoveColumns(){
158171
Interop.NetAbstractItemModel.EndRemoveColumns(Handle);
159172
}
173+
/// Signals the start of moving columns in the model.
174+
/// You must call this function before moving columns in the model.
160175
protectedvoidBeginMoveColumns(QModelIndexsourceParent,intsourceFirst,intsourceLast,QModelIndexdestinationParent,intdestinationChild){
161176
Interop.NetAbstractItemModel.BeginMoveColumns(Handle,sourceParent.Handle,sourceFirst,sourceLast,destinationParent.Handle,destinationChild);
162177
}
178+
/// Signals the end of moving columns in the model.
163179
protectedvoidEndMoveColumns(){
164180
Interop.NetAbstractItemModel.EndMoveColumns(Handle);
165181
}
182+
/// Signals the start of inserting rows into the model.
183+
/// You must call this function before inserting more columns into the model.
166184
protectedvoidBeginInsertRows(QModelIndexparent,intfrom,intto){
167185
Interop.NetAbstractItemModel.BeginInsertRows(Handle,parent.Handle,from,to);
168186
}
187+
/// Signals the end of inserting rows into the model.
169188
protectedvoidEndInsertRows(){
170189
Interop.NetAbstractItemModel.EndInsertRows(Handle);
171190
}
191+
/// Signals the start of removing rows from the model.
192+
/// You must call this function before removing columns into the model.
172193
protectedvoidBeginRemoveRows(QModelIndexparent,intfrom,intto){
173194
Interop.NetAbstractItemModel.BeginRemoveRows(Handle,parent.Handle,from,to);
174195
}
196+
/// Signals the end of removing rows from the model.
175197
protectedvoidEndRemoveRows(){
176198
Interop.NetAbstractItemModel.EndRemoveRows(Handle);
177199
}
200+
/// Signals the start of moving rows in the model.
201+
/// You must call this function before moving columns in the model.
178202
protectedvoidBeginMoveRows(QModelIndexsourceParent,intsourceFirst,intsourceLast,QModelIndexdestinationParent,intdestinationChild){
179203
Interop.NetAbstractItemModel.BeginMoveRows(Handle,sourceParent.Handle,sourceFirst,sourceLast,destinationParent.Handle,destinationChild);
180204
}
205+
/// Signals the end of moving rows in the model.
181206
protectedvoidEndMoveRows(){
182207
Interop.NetAbstractItemModel.EndMoveRows(Handle);
183208
}
209+
/// Signals the start of resetting the model.
210+
/// You must call this function before resetting the model's state.
184211
protectedvoidBeginResetModel(){
185212
Interop.NetAbstractItemModel.BeginResetModel(Handle);
186213
}
214+
/// Signals the end of resetting the model.
187215
protectedvoidEndResetModel(){
188216
Interop.NetAbstractItemModel.EndResetModel(Handle);
189217
}
218+
/// The mapping of strings to role IDs.
219+
/// This is used to indicate the QML names of properties in
220+
/// components such as the ListView and Repeater.
190221
protectedvirtualDictionary<int,string>RoleNames(){
191222
returnnewDictionary<int,string>(){
192223
{(int)ItemDataRole.DisplayRole,"display"},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp