![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <decorations.h>
Inheritance diagram for scale_widget:
Collaboration diagram for scale_widget:Public Member Functions | |
| scale_widget (Shape s, QWidget *p=0) | |
| Scale widget allowing scaling other widgets, shown in right top corner. More... | |
Public Attributes | |
| float | scale |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Draws 2 icons for resizing. More... | |
| void | mousePressEvent (QMouseEvent *event) override |
| Mouse press event for scale widget. More... | |
Private Attributes | |
| int | size |
| QPixmap | plus |
| QPixmap | minus |
Definition at line 40 of file decorations.h.
| scale_widget::scale_widget | ( | Shape | s, |
| QWidget * | p = 0 |
||
| ) |
Scale widget allowing scaling other widgets, shown in right top corner.
Definition at line 36 of file decorations.cpp.
|
overrideprotected |
Mouse press event for scale widget.
Definition at line 69 of file decorations.cpp.
|
overrideprotected |
Draws 2 icons for resizing.
Definition at line 56 of file decorations.cpp.
|
private |
Definition at line 54 of file decorations.h.
Referenced by paintEvent(), and scale_widget().
|
private |
Definition at line 53 of file decorations.h.
Referenced by paintEvent(), and scale_widget().
| float scale_widget::scale |
Definition at line 45 of file decorations.h.
Referenced by mousePressEvent(), hud_battle_log::paintEvent(), scale_widget(), and hud_battle_log::set_scale().
|
private |
Definition at line 52 of file decorations.h.
Referenced by mousePressEvent(), paintEvent(), and scale_widget().