mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-10 14:07:48 +00:00
All editors implemented
This commit is contained in:
@@ -59,3 +59,21 @@ void FieldPageObjectNode::setGroup(ProjectModel::GroupNode* group)
|
||||
setModel(model->getPageObjectProxy());
|
||||
setRootModelIndex(model->getPageObjectProxy()->mapFromSource(model->index(group)));
|
||||
}
|
||||
|
||||
AddRemoveButtons::AddRemoveButtons(QWidget* parent)
|
||||
: QWidget(parent), m_addAction(tr("Add Row")), m_addButton(this),
|
||||
m_removeAction(tr("Remove Row")), m_removeButton(this)
|
||||
{
|
||||
setFixedSize(64, 32);
|
||||
|
||||
m_addAction.setIcon(QIcon(QStringLiteral(":/icons/IconAdd.svg")));
|
||||
m_addButton.setDefaultAction(&m_addAction);
|
||||
m_addButton.setFixedSize(32, 32);
|
||||
m_addButton.move(0, 0);
|
||||
|
||||
m_removeAction.setIcon(QIcon(QStringLiteral(":/icons/IconRemove.svg")));
|
||||
m_removeButton.setDefaultAction(&m_removeAction);
|
||||
m_removeButton.setFixedSize(32, 32);
|
||||
m_removeButton.move(32, 0);
|
||||
m_removeAction.setEnabled(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user