Commit 182e624d authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Tomaz Canabrava
Browse files

Rename triggerEdit, we can call editMode directly

parent 512f57ea
......@@ -55,7 +55,7 @@ QuickCommandsWidget::QuickCommandsWidget(QWidget *parent)
if (!isParent) {
auto actionEdit = new QAction(QStringLiteral("Edit"), ui->commandsTreeView);
menu->addAction(actionEdit);
connect(actionEdit, &QAction::triggered, this, &QuickCommandsWidget::triggerEdit);
connect(actionEdit, &QAction::triggered, this, &QuickCommandsWidget::editMode);
} else {
auto actionRename = new QAction(QStringLiteral("Rename"), ui->commandsTreeView);
menu->addAction(actionRename);
......@@ -173,11 +173,6 @@ void QuickCommandsWidget::runCommand()
}
}
void QuickCommandsWidget::triggerEdit()
{
editMode();
}
void QuickCommandsWidget::triggerRename()
{
ui->commandsTreeView->edit(ui->commandsTreeView->currentIndex());
......
......@@ -43,8 +43,6 @@ public:
Q_SLOT void indexSelected(const QModelIndex &idx);
Q_SLOT void triggerEdit();
Q_SLOT void triggerRename();
Q_SLOT void triggerDelete();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment