Freeciv-3.3
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes
move_widget Class Reference

#include <mapview.h>

+ Inheritance diagram for move_widget:

Public Member Functions

 move_widget (QWidget *parent)
 
void put_to_corner ()
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 

Private Attributes

QPoint point
 

Detailed Description

Definition at line 153 of file mapview.h.

Constructor & Destructor Documentation

◆ move_widget()

move_widget::move_widget ( QWidget *  parent)

Constructor for move widget

Definition at line 384 of file mapview.cpp.

Member Function Documentation

◆ mouseMoveEvent()

void move_widget::mouseMoveEvent ( QMouseEvent event)
protected

Mouse handler for move widget (moves parent widget)

Definition at line 407 of file mapview.cpp.

◆ mousePressEvent()

void move_widget::mousePressEvent ( QMouseEvent event)
protected

Sets moving point for move widget

Definition at line 417 of file mapview.cpp.

◆ put_to_corner()

void move_widget::put_to_corner ( )

Puts move widget to left top corner

Definition at line 399 of file mapview.cpp.

Referenced by info_tab::info_tab(), hud_battle_log::paintEvent(), and hud_units::update_actions().

Field Documentation

◆ point

QPoint move_widget::point
private

Definition at line 164 of file mapview.h.

Referenced by mouseMoveEvent(), and mousePressEvent().