Class: Qt::VBoxLayout
- Inherits:
-
Object
- Object
- Qt::VBoxLayout
- Defined in:
- lib/mylibs.rb
Instance Method Summary collapse
- #addWidgetAtCenter(*w) ⇒ Object
- #addWidgetAtLeft(*w) ⇒ Object
- #addWidgetAtRight(*w) ⇒ Object
- #addWidgetWithNilStretch(*w) ⇒ Object (also: #addWidgets)
Instance Method Details
#addWidgetAtCenter(*w) ⇒ Object
33 34 35 36 |
# File 'lib/mylibs.rb', line 33 def addWidgetAtCenter(*w) w.unshift(nil) addWidgetWithNilStretch(*w) end |
#addWidgetAtLeft(*w) ⇒ Object
43 44 45 46 |
# File 'lib/mylibs.rb', line 43 def addWidgetAtLeft(*w) w.push(nil) addWidgetWithNilStretch(*w) end |
#addWidgetAtRight(*w) ⇒ Object
38 39 40 41 |
# File 'lib/mylibs.rb', line 38 def addWidgetAtRight(*w) w.unshift(nil) addWidgetWithNilStretch(*w) end |
#addWidgetWithNilStretch(*w) ⇒ Object Also known as: addWidgets
24 25 26 27 28 29 30 |
# File 'lib/mylibs.rb', line 24 def addWidgetWithNilStretch(*w) addLayout( Qt::HBoxLayout.new do |l| l.addWidgets(*w) end ) end |