LineStyleControls
LineStyleControls
Widget for editing line style properties. More…
#include <LineStyleControls.hpp>
Inherits from QWidget
Public Functions
| Name | |
|---|---|
| LineStyleControls(LineStyleState * state, QWidget * parent =[nullptr]) Construct line style controls. |
|
| ~LineStyleControls() override =default | |
| QPushButton * | colorButton() const Get the color button. |
| QDoubleSpinBox * | thicknessSpinBox() const Get the thickness spin box. |
| QDoubleSpinBox * | alphaSpinBox() const Get the alpha spin box. |
| void | setLineStyleState(LineStyleState * state) Rebind controls to a different LineStyleState. |
Detailed Description
class LineStyleControls;Widget for editing line style properties.
Provides color button, thickness spin box, and alpha spin box. Automatically synchronizes with LineStyleState.
Public Functions Documentation
function LineStyleControls
explicit LineStyleControls(
LineStyleState * state,
QWidget * parent =nullptr
)Construct line style controls.
Parameters:
- state LineStyleState to bind to (must outlive this widget)
- parent Parent widget
function ~LineStyleControls
~LineStyleControls() override =defaultfunction thicknessSpinBox
inline QDoubleSpinBox * thicknessSpinBox() constGet the thickness spin box.
function alphaSpinBox
inline QDoubleSpinBox * alphaSpinBox() constGet the alpha spin box.
function setLineStyleState
void setLineStyleState(
LineStyleState * state
)Rebind controls to a different LineStyleState.
Parameters:
- state New state to bind to (must outlive this widget while bound)
Disconnects from the current state (if any), connects to the new state, and refreshes the UI. Pass nullptr to disable the controls.
Updated on 2026-11-13 at 20:25:40 +0000