Class: FlagGraphicsPixmapItem

Inherits:
Qt::GraphicsPixmapItem
  • Object
show all
Defined in:
lib/main-dlg-impl.rb

Instance Method Summary collapse

Constructor Details

#initialize(*k) ⇒ FlagGraphicsPixmapItem

Returns a new instance of FlagGraphicsPixmapItem.



878
879
880
# File 'lib/main-dlg-impl.rb', line 878

def initialize(*k)
	super
end

Instance Method Details

#mousePressEvent(mouseEvent) ⇒ Object



882
883
884
885
886
887
888
889
890
# File 'lib/main-dlg-impl.rb', line 882

def mousePressEvent(mouseEvent)
	if mouseEvent.button == Qt::LeftButton then
		dlg=mouseEvent.widget.parent.parent
		dlg.waypoints.currentwp = childItems[0].toPlainText.to_i
		dlg.w.lBcurrentwp.text = childItems[0].toPlainText
	else
		super
	end
end