Method: TileGraphicsItemGroup#mousePressEvent

Defined in:
lib/fgmapping/main-dlg-impl.rb

#mousePressEvent(mouseEvent) ⇒ Object



1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
# File 'lib/fgmapping/main-dlg-impl.rb', line 1239

def mousePressEvent(mouseEvent)
	pos = mouseEvent.scenePos
	dlg=mouseEvent.widget.parent.parent
	case mouseEvent.button
		when Qt::LeftButton
			dlg.offset_x = pos.x / 256.0
			dlg.offset_y = pos.y / 256.0
			dlg.movemap(dlg.node)
#			when Qt::RightButton
		
	end # case
end