|
Krita Source Code Documentation
|
#include <KoAspectButton.h>
Inheritance diagram for KoAspectButton:Public Slots | |
| void | buttonReleased () |
| void | setKeepAspectRatio (bool keep) |
Signals | |
| void | keepAspectRatioChanged (bool keep) |
Public Member Functions | |
| bool | keepAspectRatio () const |
| Returns of keeping aspect ratio is on or off. | |
| KoAspectButton (QWidget *parent) | |
| constructor | |
| Private () | |
| ~KoAspectButton () override | |
Public Attributes | |
| bool | keepAspect |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
This button gives a visual indication of weather the 'aspect ratio' is locked. Typically you would use this alongside 2 spinboxes with a value like a width and height.
Definition at line 14 of file KoAspectButton.cpp.
|
explicit |
constructor
Definition at line 24 of file KoAspectButton.cpp.
References buttonReleased(), connect(), and setKeepAspectRatio().
|
override |
|
slot |
Definition at line 42 of file KoAspectButton.cpp.
References d, and setKeepAspectRatio().
| bool KoAspectButton::keepAspectRatio | ( | ) | const |
Returns of keeping aspect ratio is on or off.
Definition at line 58 of file KoAspectButton.cpp.
References d.
|
signal |
This signal is emitted every time the button changes value, either by user interaction or by programmatically setting it.
|
inline |
Definition at line 17 of file KoAspectButton.cpp.
|
slot |
Set the visual indicator to be locked or not. This also emits the keepAspectRatioChanged if the value has changed.
| keep | if true, lock the aspect ratio. |
Definition at line 48 of file KoAspectButton.cpp.
References d, keepAspectRatioChanged(), and KisIconUtils::loadIcon().
|
private |
Definition at line 47 of file KoAspectButton.h.
| bool KoAspectButton::keepAspect |
Definition at line 21 of file KoAspectButton.cpp.