mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-19 05:24:59 -04:00
feat: Add basic task flow run and edit (#212)
This commit is contained in:
31
TaskFlow/Editor/TaskPortItem.hpp
Normal file
31
TaskFlow/Editor/TaskPortItem.hpp
Normal file
@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <TaskPort.hpp>
|
||||
#include <QQuickItem>
|
||||
|
||||
namespace QodeAssist::TaskFlow {
|
||||
|
||||
class TaskPortItem : public QQuickItem
|
||||
{
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
|
||||
Q_PROPERTY(TaskPort *port READ port WRITE setPort NOTIFY portChanged)
|
||||
Q_PROPERTY(QString name READ name CONSTANT)
|
||||
|
||||
public:
|
||||
TaskPortItem(QQuickItem *parent = nullptr);
|
||||
|
||||
TaskPort *port() const;
|
||||
void setPort(TaskPort *newPort);
|
||||
|
||||
QString name() const;
|
||||
|
||||
signals:
|
||||
void portChanged();
|
||||
|
||||
private:
|
||||
TaskPort *m_port = nullptr;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist::TaskFlow
|
Reference in New Issue
Block a user