xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QAbstractItemView.x
浏览该文件的文档.
1
//xlang Source, Name:qt5/widgets/QAbstractItemView.x
2
//Date: Wed Aug 00:07:24 2022
3
package
Qt{
4
@SuppressWarnings public class QAbstractItemView : QAbstractScrollArea{
5
public enum SelectionMode {
6
NoSelection,
7
SingleSelection,
8
MultiSelection,
9
ExtendedSelection,
10
ContiguousSelection
11
};
12
private
onItemViewListener _listener = nilptr;
13
14
public
QAbstractItemView
(){
15
16
}
17
18
public
QAbstractItemView
(
long
handle){
19
super(handle);
20
}
21
22
public
void
setSelectionMode
(SelectionMode mode){
23
QtXnl.widget_set_vint_value(nativehandle, Constant.TREESELTIONMODE, mode);
24
}
25
26
public
void
setOnItemViewListener
(onItemViewListener _l){
27
_listener = _l;
28
}
29
30
public
onItemViewListener
getOnItemViewListener
(){
31
return
_listener;
32
}
33
public
void
pressed
(
long
index){
34
if
(_listener != nilptr){
35
_listener.pressed(index);
36
}
37
}
38
public
void
clicked
(
long
index){
39
if
(_listener != nilptr){
40
_listener.clicked(index);
41
}
42
}
43
public
void
doubleClicked
(
long
index){
44
if
(_listener != nilptr){
45
_listener.doubleClicked(index);
46
}
47
}
48
49
public
void
activated
(
long
index){
50
if
(_listener != nilptr){
51
_listener.activated(index);
52
}
53
}
54
public
void
entered
(
long
index){
55
if
(_listener != nilptr){
56
_listener.entered(index);
57
}
58
}
59
public
void
viewportEntered
(){
60
if
(_listener != nilptr){
61
_listener.viewportEntered();
62
}
63
}
64
65
public
void
iconSizeChanged
(
int
width,
int
height){
66
if
(_listener != nilptr){
67
_listener.iconSizeChanged(width, height);
68
}
69
}
70
};
71
};
Qt.QAbstractItemView.activated
void activated(long index)
Definition
QAbstractItemView.x:49
Qt.QAbstractItemView.clicked
void clicked(long index)
Definition
QAbstractItemView.x:38
Qt.QAbstractItemView.viewportEntered
void viewportEntered()
Definition
QAbstractItemView.x:59
Qt.QAbstractItemView.entered
void entered(long index)
Definition
QAbstractItemView.x:54
Qt.QAbstractItemView.iconSizeChanged
void iconSizeChanged(int width, int height)
Definition
QAbstractItemView.x:65
Qt.QAbstractItemView.pressed
void pressed(long index)
Definition
QAbstractItemView.x:33
Qt.QAbstractItemView.QAbstractItemView
QAbstractItemView(long handle)
Definition
QAbstractItemView.x:18
Qt.QAbstractItemView.QAbstractItemView
QAbstractItemView()
Definition
QAbstractItemView.x:14
Qt.QAbstractItemView.doubleClicked
void doubleClicked(long index)
Definition
QAbstractItemView.x:43
Qt.QAbstractItemView.setSelectionMode
void setSelectionMode(SelectionMode mode)
Definition
QAbstractItemView.x:22
Qt.QAbstractItemView.setOnItemViewListener
void setOnItemViewListener(onItemViewListener _l)
Definition
QAbstractItemView.x:26
Qt.QAbstractItemView.getOnItemViewListener
onItemViewListener getOnItemViewListener()
Definition
QAbstractItemView.x:30
制作者
1.9.8