Freeciv-3.1: close_widget Class Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
close_widget Class Reference

`#include <mapview.h>`

Inheritance diagram for close_widget:

## Public Member Functions

| close_widget (QWidget *parent)
void | put_to_corner ()

## Protected Member Functions

void | mousePressEvent (QMouseEvent *event)
void | notify_parent ()

## Detailed Description

Definition at line 182 of file mapview.h.

## Constructor & Destructor Documentation

## ◆ close_widget()

close_widget::close_widget | ( | QWidget * | parent | ) |

Constructor for close widget

Definition at line 486 of file mapview.cpp.

## Member Function Documentation

## ◆ mousePressEvent()

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

protected

Mouse handler for close widget, hides parent widget

Definition at line 508 of file mapview.cpp.

## ◆ notify_parent()

void close_widget::notify_parent | ( |  | ) |

protected

Notifies parent to do custom action, parent is already hidden.

Definition at line 522 of file mapview.cpp.

Referenced by mousePressEvent().

## ◆ put_to_corner()

void close_widget::put_to_corner | ( |  | ) |

Puts close widget to right top corner

Definition at line 500 of file mapview.cpp.

Referenced by notify_dialog::notify_dialog(), units_select::paint(), units_reports::paintEvent(), and notify_dialog::paintEvent().