选择上传下载移动到右键菜单中

This commit is contained in:
2026-02-02 21:30:57 +08:00
parent e09cf859b8
commit a0b3d4967b
2 changed files with 3 additions and 0 deletions

View File

@@ -70,6 +70,8 @@ void Compare::InitMenu()
}
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
});
menu_->addAction(tr("上传"), this, [this]() { TransToRight(false); });
menu_->addAction(tr("下载"), this, [this]() { TransToLeft(false); });
menu_->addSeparator();
connect(ui->tableWidget, &QTableWidget::customContextMenuRequested, this,
[this](const QPoint& pos) { menu_->exec(QCursor::pos()); });