选择上传下载移动到右键菜单中
This commit is contained in:
@@ -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()); });
|
||||
|
||||
Reference in New Issue
Block a user