qasim: Added module.

git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1692 eaee96b3-f302-0410-b096-c6cfd47f7835
This commit is contained in:
glenux 2011-07-19 16:22:56 +00:00
parent 4c2d453bf8
commit 0668ddbb06

View file

@ -4,13 +4,15 @@ require 'Qt4'
# QaSiM // Qt Sshfs Mapper # QaSiM // Qt Sshfs Mapper
VERSION="0.1"
def _ str def _ str
Qt::Object.tr(str) Qt::Object.tr(str)
end end
module Qasim
VERSION="0.1"
def build_app def build_app
app = Qt::Application.new(ARGV) app = Qt::Application.new(ARGV)
@ -22,7 +24,11 @@ def build_app
si.icon = std_icon si.icon = std_icon
si.show si.show
si.setToolTip("Qasim v%s" % VERSION);
si.showMessage("Qasim",
"funky funky notification", 2, 5000)
si.setToolTip("Qasim %s" % VERSION);
Qt::Timer.new(app) do |timer| Qt::Timer.new(app) do |timer|
timer.connect(SIGNAL('timeout()')) do timer.connect(SIGNAL('timeout()')) do
@ -78,5 +84,8 @@ def build_app
app.exec app.exec
end end
build_app end
include Qasim
Qasim::build_app