Class: Qt::HBoxLayout

Inherits:
Object
  • Object
show all
Defined in:
lib/mylibs.rb

Instance Method Summary collapse

Instance Method Details

#addWidgets(*w) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/mylibs.rb', line 11

def addWidgets(*w)
    w.each do |i|
        if i then
            e = i.kind_of?(String) ? Qt::Label.new(i) : i
            addWidget(e)
        else
            addStretch
        end
    end
end