Class: Qt::Base
Direct Known Subclasses
AbstractSocket, AbstractTextDocumentLayout, AccessibleEvent, Action, ActionEvent, Application, Buffer, ButtonGroup, ByteArray, CheckBox, ChildEvent, CloseEvent, Color, Connection, ContextMenuEvent, CoreApplication, Cursor, CustomEvent, DBusConnection, DBusConnectionInterface, DBusError, DBusInterface, DBusMessage, Date, DateTime, Dialog, DomAttr, DomDocumentType, DragEnterEvent, DragLeaveEvent, DropEvent, Event, EventLoop, File, FileIconProvider, FileOpenEvent, FocusEvent, Font, Ftp, GLContext, GLPixelBuffer, GLWidget, GenericArgument, Gradient, GraphicsEllipseItem, GraphicsItem, GraphicsItemGroup, GraphicsLineItem, GraphicsPathItem, GraphicsPixmapItem, GraphicsPolygonItem, GraphicsRectItem, GraphicsSceneContextMenuEvent, GraphicsSceneHelpEvent, GraphicsSceneHoverEvent, GraphicsSceneMouseEvent, GraphicsSceneWheelEvent, GraphicsSimpleTextItem, GraphicsTextItem, HelpEvent, HideEvent, HoverEvent, Http, HttpRequestHeader, IODevice, IconDragEvent, Image, ImageIOHandler, ImageReader, ImageWriter, InputEvent, InputMethodEvent, ItemSelection, ItemSelectionModel, KeySequence, LCDNumber, Library, Line, LineF, ListWidgetItem, Locale, Menu, MetaClassInfo, MetaEnum, MetaMethod, MetaObject, MetaProperty, MetaType, ModelIndex, MouseEvent, MoveEvent, Movie, NetworkProxy, Object, PageSetupDialog, PaintEvent, Picture, PictureIO, Pixmap, PluginLoader, Point, PointF, PrintDialog, Printer, PushButton, RadioButton, Rect, RectF, ResizeEvent, Shortcut, ShortcutEvent, ShowEvent, Size, SizeF, SizePolicy, SocketNotifier, SqlDatabase, SqlError, SqlField, SqlIndex, SqlQuery, SqlResult, SqlTableModel, StandardItem, StandardItemModel, StatusTipEvent, StyleHintReturn, StyleOption, SyntaxHighlighter, TableWidgetItem, TemporaryFile, TextCursor, TextDocument, TextFormat, TextImageFormat, TextInlineObject, TextLength, TextList, TextObject, TextTable, TextTableCell, Time, TimerEvent, ToolButton, Translator, TreeWidget, TreeWidgetItem, TreeWidgetItemIterator, UrlInfo, Variant, WhatsThisClickedEvent, Widget, WindowStateChangeEvent, XmlAttributes
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.q_classinfo(key, value) ⇒ Object
71
72
73
74
75
|
# File 'lib/qt/qtruby4.rb', line 71
def self.q_classinfo(key, value)
meta = Qt::Meta[self.name] || Qt::MetaInfo.new(self)
meta.add_classinfo(key, value)
meta.changed = true
end
|
.q_signal(signal) ⇒ Object
59
60
61
62
63
|
# File 'lib/qt/qtruby4.rb', line 59
def self.q_signal(signal)
meta = Qt::Meta[self.name] || Qt::MetaInfo.new(self)
meta.add_signals([signal])
meta.changed = true
end
|
.q_slot(slot) ⇒ Object
65
66
67
68
69
|
# File 'lib/qt/qtruby4.rb', line 65
def self.q_slot(slot)
meta = Qt::Meta[self.name] || Qt::MetaInfo.new(self)
meta.add_slots([slot])
meta.changed = true
end
|
.signals(*signal_list) ⇒ Object
47
48
49
50
51
|
# File 'lib/qt/qtruby4.rb', line 47
def self.signals(*signal_list)
meta = Qt::Meta[self.name] || Qt::MetaInfo.new(self)
meta.add_signals(signal_list)
meta.changed = true
end
|
.slots(*slot_list) ⇒ Object
53
54
55
56
57
|
# File 'lib/qt/qtruby4.rb', line 53
def self.slots(*slot_list)
meta = Qt::Meta[self.name] || Qt::MetaInfo.new(self)
meta.add_slots(slot_list)
meta.changed = true
end
|
Instance Method Details
98
99
100
|
# File 'lib/qt/qtruby4.rb', line 98
def %(a)
return Qt::%(self, a)
end
|
107
108
109
|
# File 'lib/qt/qtruby4.rb', line 107
def &(a)
return Qt::&(self, a)
end
|
92
93
94
|
# File 'lib/qt/qtruby4.rb', line 92
def *(a)
return Qt::*(self, a)
end
|
77
78
79
|
# File 'lib/qt/qtruby4.rb', line 77
def **(a)
return Qt::**(self, a)
end
|
80
81
82
|
# File 'lib/qt/qtruby4.rb', line 80
def +(a)
return Qt::+(self, a)
end
|
89
90
91
|
# File 'lib/qt/qtruby4.rb', line 89
def -(a)
return Qt::-(self, a)
end
|
86
87
88
|
# File 'lib/qt/qtruby4.rb', line 86
def -@()
return Qt::-(self)
end
|
95
96
97
|
# File 'lib/qt/qtruby4.rb', line 95
def /(a)
return Qt::/(self, a)
end
|
Module has ‘<’, ‘<=’, ‘>’ and ‘>=’ operator instance methods, so pretend they don’t exist by calling method_missing() explicitely
119
120
121
122
123
124
125
|
# File 'lib/qt/qtruby4.rb', line 119
def <(a)
begin
Qt::method_missing(:<, self, a)
rescue
super(a)
end
end
|
104
105
106
|
# File 'lib/qt/qtruby4.rb', line 104
def <<(a)
return Qt::<<(self, a)
end
|
127
128
129
130
131
132
133
|
# File 'lib/qt/qtruby4.rb', line 127
def <=(a)
begin
Qt::method_missing(:<=, self, a)
rescue
super(a)
end
end
|
Object has a ‘==’ operator instance method, so pretend it don’t exist by calling method_missing() explicitely
153
154
155
156
157
158
159
|
# File 'lib/qt/qtruby4.rb', line 153
def ==(a)
begin
Qt::method_missing(:==, self, a)
rescue
super(a)
end
end
|
135
136
137
138
139
140
141
|
# File 'lib/qt/qtruby4.rb', line 135
def >(a)
begin
Qt::method_missing(:>, self, a)
rescue
super(a)
end
end
|
143
144
145
146
147
148
149
|
# File 'lib/qt/qtruby4.rb', line 143
def >=(a)
begin
Qt::method_missing(:>=, self, a)
rescue
super(a)
end
end
|
101
102
103
|
# File 'lib/qt/qtruby4.rb', line 101
def >>(a)
return Qt::>>(self, a)
end
|
110
111
112
|
# File 'lib/qt/qtruby4.rb', line 110
def ^(a)
return Qt::^(self, a)
end
|
#methods(regular = true) ⇒ Object
162
163
164
165
166
167
168
|
# File 'lib/qt/qtruby4.rb', line 162
def methods(regular=true)
if !regular
return singleton_methods
end
qt_methods(super, 0x0)
end
|
#protected_methods ⇒ Object
170
171
172
173
|
# File 'lib/qt/qtruby4.rb', line 170
def protected_methods
qt_methods(super, 0x80)
end
|
#public_methods ⇒ Object
175
176
177
|
# File 'lib/qt/qtruby4.rb', line 175
def public_methods
methods
end
|
#singleton_methods ⇒ Object
179
180
181
182
|
# File 'lib/qt/qtruby4.rb', line 179
def singleton_methods
qt_methods(super, 0x01)
end
|
113
114
115
|
# File 'lib/qt/qtruby4.rb', line 113
def |(a)
return Qt::|(self, a)
end
|
83
84
85
|
# File 'lib/qt/qtruby4.rb', line 83
def ~(a)
return Qt::~(self, a)
end
|