Skip to content

Commit

Permalink
Adopt templategen tool to the latest projectconfig changes
Browse files Browse the repository at this point in the history
Signed-off-by: Remigiusz Kołłątaj <[email protected]>
  • Loading branch information
Remigiusz Kołłątaj committed Jul 10, 2018
1 parent f36ff02 commit 37fc050
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/templategen/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,16 +640,11 @@ class {name}Model : public ComponentModel<{name}, {name}Model> {{
void setInData(std::shared_ptr<NodeData> nodeData, PortIndex port) override;
QtNodes::NodePainterDelegate* painterDelegate() const override;
static QColor headerColor1()
static QColor headerColor()
{{
return QColor(85, 95, 195);
}}
static QColor headerColor2()
{{
return QColor(84, 84, 84);
}}
public slots:
signals:
Expand Down Expand Up @@ -696,7 +691,7 @@ const std::map<PortType, std::vector<NodeDataType>> portMappings = {{
{name}Model::{name}Model()
: ComponentModel("{name}")
, _painter(std::make_unique<NodePainter>(headerColor1(), headerColor2()))
, _painter(std::make_unique<NodePainter>(headerColor()))
{{
_label->setAlignment(Qt::AlignVCenter | Qt::AlignHCenter);
_label->setFixedSize(75, 25);
Expand Down

0 comments on commit 37fc050

Please sign in to comment.