Class: FlagGraphicsPixmapItem

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

Instance Method Summary collapse

Constructor Details

#initialize(*k) ⇒ FlagGraphicsPixmapItem

Returns a new instance of FlagGraphicsPixmapItem.



1059
1060
1061
# File 'lib/fgmapping/main-dlg-impl.rb', line 1059

def initialize(*k)
  super
end

Instance Method Details

#mousePressEvent(mouseEvent) ⇒ Object



1063
1064
1065
1066
1067
1068
1069
1070
1071
# File 'lib/fgmapping/main-dlg-impl.rb', line 1063

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