class NodeinfoWidget
Class MainDlg
############################################
Attributes
hover_on[RW]
hover_widget_pos[RW]
hovertimer[R]
w[R]
Public Class Methods
new(parent=nil)
click to toggle source
Calls superclass method
# File lib/fgmapping/nodeinfo-impl.rb, line 16 def initialize parent=nil super() @w=Ui::NodeinfoWidget.new @w.setupUi(self) @parent=parent @hovertimer = Qt::Timer.new() @hovertimer.setSingleShot(true) Qt::Object.connect( @hovertimer, SIGNAL('timeout()'), self, SLOT('hoverTimer()') ) @hover_on=false @hover_widget_pos=nil end
Public Instance Methods
hoverTimer()
click to toggle source
# File lib/fgmapping/nodeinfo-impl.rb, line 30 def hoverTimer() p "timer fired" if @hover_on then @parent.scene.items.each {|item| if item.kind_of? Qt::GraphicsRectItem then if item == @parent then item.setVisible(false) break end end } @hover_widget_pos = nil @hover_on = false end p "timer fired out" end