Class: Qt::Application

Inherits:
Object show all
Defined in:
lib/rui/toolkits/qt/qt.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data.



198
199
200
# File 'lib/rui/toolkits/qt/qt.rb', line 198

def data
  @data
end

Class Method Details

.init(data) ⇒ Object



200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/rui/toolkits/qt/qt.rb', line 200

def self.init(data)
  app = new(ARGV)
  app.application_name = data[:id]
  app.organization_name = data[:id]
  app.data = data

  if block_given?
    yield app
    app.exec
  end
  app
end