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:
29
TaskFlow/Editor/TaskPortItem.cpp
Normal file
29
TaskFlow/Editor/TaskPortItem.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
#include "TaskPortItem.hpp"
|
||||
|
||||
namespace QodeAssist::TaskFlow {
|
||||
|
||||
TaskPortItem::TaskPortItem(QQuickItem *parent)
|
||||
: QQuickItem(parent)
|
||||
{
|
||||
setObjectName("TaskPortItem");
|
||||
}
|
||||
|
||||
TaskPort *TaskPortItem::port() const
|
||||
{
|
||||
return m_port;
|
||||
}
|
||||
|
||||
void TaskPortItem::setPort(TaskPort *newPort)
|
||||
{
|
||||
if (m_port == newPort)
|
||||
return;
|
||||
m_port = newPort;
|
||||
emit portChanged();
|
||||
}
|
||||
|
||||
QString TaskPortItem::name() const
|
||||
{
|
||||
return m_port->name();
|
||||
}
|
||||
|
||||
} // namespace QodeAssist::TaskFlow
|
Reference in New Issue
Block a user