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.



1024
1025
1026
# File 'lib/main-dlg-impl.rb', line 1024

def initialize(*k)
	super
end

Instance Method Details

#mousePressEvent(mouseEvent) ⇒ Object



1028
1029
1030
1031
1032
1033
1034
1035
1036
# File 'lib/main-dlg-impl.rb', line 1028

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