|
ORE Studio 0.0.4
|
Reusable widget for displaying and editing a list of composite legs. More...
#include <CompositeLegsWidget.hpp>
Inherits QWidget.

Signals | |
| void | legsChanged () |
Public Member Functions | |
| CompositeLegsWidget (QWidget *parent=nullptr) | |
| void | setLegs (const std::vector< trading::domain::composite_leg > &legs) |
| Populate the table from a vector of legs. | |
| std::vector< trading::domain::composite_leg > | legs () const |
| Collect the current table contents as a typed vector. | |
| void | setReadOnly (bool readOnly) |
| Enable or disable editing of the legs table and buttons. | |
Reusable widget for displaying and editing a list of composite legs.
Manages a QTableWidget with Seq / Trade ID columns. Embed in any dialog that deals with composite_leg records (CompositeTrade, MultiLegOption).
| void setLegs | ( | const std::vector< trading::domain::composite_leg > & | legs | ) |
Populate the table from a vector of legs.
Does not emit legsChanged().
| std::vector< trading::domain::composite_leg > legs | ( | ) | const |
Collect the current table contents as a typed vector.
Rows with an empty Trade ID are skipped.