本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQModelIndex函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQModelIndex函数的具体用法?Golang PointerFromQModelIndex怎么用?Golang PointerFromQModelIndex使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQModelIndex函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Data
func (ptr *QFileSystemModel) Data(index core.QModelIndex_ITF, role int) *core.QVariant {
if ptr.Pointer() != nil {
return core.NewQVariantFromPointer(C.QFileSystemModel_Data(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(role)))
}
return nil
}
示例2: SetRowHidden
func (ptr *QTreeView) SetRowHidden(row int, parent core.QModelIndex_ITF, hide bool) {
if ptr.Pointer() != nil {
C.QTreeView_SetRowHidden(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent), C.int(qt.GoBoolToInt(hide)))
}
}
示例3: Expand
func (ptr *QTreeView) Expand(index core.QModelIndex_ITF) {
if ptr.Pointer() != nil {
C.QTreeView_Expand(ptr.Pointer(), core.PointerFromQModelIndex(index))
}
}
示例4: ScrollTo
func (ptr *QTreeView) ScrollTo(index core.QModelIndex_ITF, hint QAbstractItemView__ScrollHint) {
if ptr.Pointer() != nil {
C.QTreeView_ScrollTo(ptr.Pointer(), core.PointerFromQModelIndex(index), C.int(hint))
}
}
示例5: SetFirstColumnSpanned
func (ptr *QTreeView) SetFirstColumnSpanned(row int, parent core.QModelIndex_ITF, span bool) {
if ptr.Pointer() != nil {
C.QTreeView_SetFirstColumnSpanned(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent), C.int(qt.GoBoolToInt(span)))
}
}
示例6: UpdateEditorGeometry
func (ptr *QItemDelegate) UpdateEditorGeometry(editor QWidget_ITF, option QStyleOptionViewItem_ITF, index core.QModelIndex_ITF) {
if ptr.Pointer() != nil {
C.QItemDelegate_UpdateEditorGeometry(ptr.Pointer(), PointerFromQWidget(editor), PointerFromQStyleOptionViewItem(option), core.PointerFromQModelIndex(index))
}
}
示例7: IsFirstColumnSpanned
func (ptr *QTreeView) IsFirstColumnSpanned(row int, parent core.QModelIndex_ITF) bool {
if ptr.Pointer() != nil {
return C.QTreeView_IsFirstColumnSpanned(ptr.Pointer(), C.int(row), core.PointerFromQModelIndex(parent)) != 0
}
return false
}
示例8: LastModified
func (ptr *QFileSystemModel) LastModified(index core.QModelIndex_ITF) *core.QDateTime {
if ptr.Pointer() != nil {
return core.NewQDateTimeFromPointer(C.QFileSystemModel_LastModified(ptr.Pointer(), core.PointerFromQModelIndex(index)))
}
return nil
}
示例9: Mkdir
func (ptr *QFileSystemModel) Mkdir(parent core.QModelIndex_ITF, name string) *core.QModelIndex {
if ptr.Pointer() != nil {
return core.NewQModelIndexFromPointer(C.QFileSystemModel_Mkdir(ptr.Pointer(), core.PointerFromQModelIndex(parent), C.CString(name)))
}
return nil
}
示例10: HasChildren
func (ptr *QFileSystemModel) HasChildren(parent core.QModelIndex_ITF) bool {
if ptr.Pointer() != nil {
return C.QFileSystemModel_HasChildren(ptr.Pointer(), core.PointerFromQModelIndex(parent)) != 0
}
return false
}
示例11: Index
func (ptr *QFileSystemModel) Index(row int, column int, parent core.QModelIndex_ITF) *core.QModelIndex {
if ptr.Pointer() != nil {
return core.NewQModelIndexFromPointer(C.QFileSystemModel_Index(ptr.Pointer(), C.int(row), C.int(column), core.PointerFromQModelIndex(parent)))
}
return nil
}
示例12: Flags
func (ptr *QFileSystemModel) Flags(index core.QModelIndex_ITF) core.Qt__ItemFlag {
if ptr.Pointer() != nil {
return core.Qt__ItemFlag(C.QFileSystemModel_Flags(ptr.Pointer(), core.PointerFromQModelIndex(index)))
}
return 0
}
示例13: FetchMore
func (ptr *QFileSystemModel) FetchMore(parent core.QModelIndex_ITF) {
if ptr.Pointer() != nil {
C.QFileSystemModel_FetchMore(ptr.Pointer(), core.PointerFromQModelIndex(parent))
}
}
示例14: DropMimeData
func (ptr *QFileSystemModel) DropMimeData(data core.QMimeData_ITF, action core.Qt__DropAction, row int, column int, parent core.QModelIndex_ITF) bool {
if ptr.Pointer() != nil {
return C.QFileSystemModel_DropMimeData(ptr.Pointer(), core.PointerFromQMimeData(data), C.int(action), C.int(row), C.int(column), core.PointerFromQModelIndex(parent)) != 0
}
return false
}
示例15: SetEditorData
func (ptr *QItemDelegate) SetEditorData(editor QWidget_ITF, index core.QModelIndex_ITF) {
if ptr.Pointer() != nil {
C.QItemDelegate_SetEditorData(ptr.Pointer(), PointerFromQWidget(editor), core.PointerFromQModelIndex(index))
}
}