选择上传下载移动到右键菜单中
This commit is contained in:
@@ -18,6 +18,7 @@ variables:
|
|||||||
# 优化
|
# 优化
|
||||||
|
|
||||||
- 删除新建文件(夹)成功时不提示。
|
- 删除新建文件(夹)成功时不提示。
|
||||||
|
- 选择上传下载移动到右键菜单中。
|
||||||
|
|
||||||
# 功能新增
|
# 功能新增
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ void Compare::InitMenu()
|
|||||||
}
|
}
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||||
});
|
});
|
||||||
|
menu_->addAction(tr("上传"), this, [this]() { TransToRight(false); });
|
||||||
|
menu_->addAction(tr("下载"), this, [this]() { TransToLeft(false); });
|
||||||
menu_->addSeparator();
|
menu_->addSeparator();
|
||||||
connect(ui->tableWidget, &QTableWidget::customContextMenuRequested, this,
|
connect(ui->tableWidget, &QTableWidget::customContextMenuRequested, this,
|
||||||
[this](const QPoint& pos) { menu_->exec(QCursor::pos()); });
|
[this](const QPoint& pos) { menu_->exec(QCursor::pos()); });
|
||||||
|
|||||||
Reference in New Issue
Block a user