Freeciv-3.1: resize_widget Class Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes
resize_widget Class Reference

`#include <mapview.h>`

Inheritance diagram for resize_widget:

## Public Member Functions

| resize_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 135 of file mapview.h.

## Constructor & Destructor Documentation

## ◆ resize_widget()

resize_widget::resize_widget | ( | QWidget * | parent | ) |

Constructor for resize widget

Definition at line 429 of file mapview.cpp.

## Member Function Documentation

## ◆ mouseMoveEvent()

void resize_widget::mouseMoveEvent | ( | QMouseEvent * | event | ) |

protected

Mouse handler for resize widget (resizes parent widget)

Definition at line 452 of file mapview.cpp.

## ◆ mousePressEvent()

void resize_widget::mousePressEvent | ( | QMouseEvent * | event | ) |

protected

Sets moving point for resize widget;

Definition at line 470 of file mapview.cpp.

## ◆ put_to_corner()

void resize_widget::put_to_corner | ( |  | ) |

Puts resize widget to left top corner

Definition at line 443 of file mapview.cpp.

Referenced by minimap_view::minimap_view(), and minimap_view::paint().

## Field Documentation

## ◆ point

QPoint resize_widget::point

private

Definition at line 146 of file mapview.h.

Referenced by mouseMoveEvent(), and mousePressEvent().