fix: support editing instance names
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
@ -58,6 +58,14 @@ void InstanceView::switchDisplayMode(InstanceView::DisplayMode mode)
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceView::editSelected()
|
||||
{
|
||||
auto current = currentView()->selectionModel()->currentIndex();
|
||||
if (current.isValid()) {
|
||||
currentView()->edit(current);
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceView::prepareModel()
|
||||
{
|
||||
m_tableProxy = new InstanceTableProxyModel(this);
|
||||
|
@ -52,6 +52,8 @@ class InstanceView : public QStackedWidget {
|
||||
|
||||
void setCatDisplayed(bool enabled);
|
||||
|
||||
void editSelected();
|
||||
|
||||
signals:
|
||||
void instanceActivated(InstancePtr inst);
|
||||
void currentInstanceChanged(InstancePtr current, InstancePtr previous);
|
||||
|
Reference in New Issue
Block a user