|
Maki
Formally verfied low-code orchestration
|
Public Member Functions | |
| StyledFrame (QWidget *parent=nullptr) | |
| Constructs a StyledFrame with the given parent. | |
| void | setBackgroundRole (BackgroundRole role) |
| Sets the background role of the frame. | |
| void | setBorderRole (BorderRole role) |
| Sets the border role of the frame. | |
| void | setCustomBackgroundColor (const QColor &color) |
| Sets a custom background color for the frame. | |
| void | setCustomBorderColor (const QColor &color) |
| Sets a custom border color for the frame. | |
| void | setBorderWidth (int width) |
| Sets the width of the border. | |
| void | setRadius (qreal radius) |
| Sets the radius for rounded corners. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Handles the paint event to draw the styled frame. | |
Private Member Functions | |
| QColor | backgroundColor () const |
| Radius for rounded corners. | |
| QColor | borderColor () const |
| Returns the current border color based on the role. | |
| StyledFrame::StyledFrame | ( | QWidget * | parent = nullptr | ) |
Constructs a StyledFrame with the given parent.
| parent | The parent widget. |
|
private |
Radius for rounded corners.
Returns the current background color based on the role.
|
private |
Returns the current border color based on the role.
|
overrideprotected |
Handles the paint event to draw the styled frame.
| event | The paint event. |
| void StyledFrame::setBackgroundRole | ( | BackgroundRole | role | ) |
Sets the background role of the frame.
| role | The new background role. |
| void StyledFrame::setBorderRole | ( | BorderRole | role | ) |
Sets the border role of the frame.
| role | The new border role. |
| void StyledFrame::setBorderWidth | ( | int | width | ) |
Sets the width of the border.
| width | The new border width. |
| void StyledFrame::setCustomBackgroundColor | ( | const QColor & | color | ) |
Sets a custom background color for the frame.
| color | The new custom background color. |
| void StyledFrame::setCustomBorderColor | ( | const QColor & | color | ) |
Sets a custom border color for the frame.
| color | The new custom border color. |
| void StyledFrame::setRadius | ( | qreal | radius | ) |
Sets the radius for rounded corners.
| radius | The new radius value. |