frontend-tools: Add edit script button
This commit is contained in:
parent
e81cf90c1e
commit
901a030adf
4 changed files with 19 additions and 0 deletions
|
|
@ -427,6 +427,16 @@ void ScriptsTool::on_scripts_customContextMenuRequested(const QPoint &pos)
|
|||
popup.exec(QCursor::pos());
|
||||
}
|
||||
|
||||
void ScriptsTool::on_editScript_clicked()
|
||||
{
|
||||
int row = ui->scripts->currentRow();
|
||||
if (row == -1)
|
||||
return;
|
||||
QUrl url = QUrl::fromLocalFile(
|
||||
ui->scripts->item(row)->data(Qt::UserRole).toString());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void ScriptsTool::on_scriptLog_clicked()
|
||||
{
|
||||
scriptLogWindow->show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue