feat: Companion - New model curve tab layout, curve edit dialog and mix edit curve view (#1484)

Add curve image and double click to edit to input edit, mix edit and outputs
This commit is contained in:
Neil Horne
2022-03-08 13:10:13 +10:00
committed by GitHub
parent 70a4f6c154
commit e0e196a6e6
30 changed files with 2076 additions and 1472 deletions
+4 -4
View File
@@ -584,18 +584,18 @@ TableLayout::TableLayout(QWidget * parent, int rowCount, const QStringList & hea
#endif
}
void TableLayout::addWidget(int row, int column, QWidget * widget)
void TableLayout::addWidget(int row, int column, QWidget * widget, Qt::Alignment alignment)
{
#if defined(TABLE_LAYOUT)
QHBoxLayout * layout = new QHBoxLayout(tableWidget);
layout->addWidget(widget);
addLayout(row, column, layout);
#else
gridWidget->addWidget(widget, row + 1, column);
gridWidget->addWidget(widget, row + 1, column, alignment);
#endif
}
void TableLayout::addLayout(int row, int column, QLayout * layout)
void TableLayout::addLayout(int row, int column, QLayout * layout, Qt::Alignment alignment)
{
#if defined(TABLE_LAYOUT)
layout->setContentsMargins(1, 3, 1, 3);
@@ -603,7 +603,7 @@ void TableLayout::addLayout(int row, int column, QLayout * layout)
containerWidget->setLayout(layout);
tableWidget->setCellWidget(row, column, containerWidget);
#else
gridWidget->addLayout(layout, row + 1, column);
gridWidget->addLayout(layout, row + 1, column, alignment);
#endif
}