Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

509 B
Raw Blame
#pragma once

#include <QGraphicsPathItem>
#include <QPointF>

namespace fincept::workflow {

class PortItem;

/// Transient bezier line drawn while dragging from a port to create a connection.
class TempEdge : public QGraphicsPathItem {
  public:
    explicit TempEdge(PortItem* source, QGraphicsItem* parent = nullptr);

    void update_target(const QPointF& scene_pos);
    PortItem* source_port() const { return source_; }

  private:
    PortItem* source_ = nullptr;
};

} // namespace fincept::workflow