Class: Shirka::Qt::App

Inherits:
App
  • Object
show all
Defined in:
lib/shirka/qt/app.rb

Direct Known Subclasses

Troshka::App

Instance Attribute Summary

Attributes inherited from App

#path

Instance Method Summary collapse

Methods inherited from App

#init, #initialize, #load, #start, #starting

Methods included from Eventalk

#add_watcher, #fire, #forward, #watch, #watchers

Constructor Details

This class inherits a constructor from Shirka::App

Instance Method Details

#icon=(path) ⇒ Object



15
16
17
# File 'lib/shirka/qt/app.rb', line 15

def icon=(path)
  @qt_app.setWindowIcon ::Qt::Icon.new(path)
end

#setupObject



5
6
7
# File 'lib/shirka/qt/app.rb', line 5

def setup
  @qt_app = ::Qt::Application.new []
end

#startedObject



9
10
11
12
13
# File 'lib/shirka/qt/app.rb', line 9

def started
  fire :starting
  fire :started
  @qt_app.exec
end