语言:完善英文转中文。
This commit is contained in:
@@ -40,7 +40,7 @@ void Compare::InitMenu()
|
||||
auto path = item->text();
|
||||
emit sigTryVisit(false, path);
|
||||
});
|
||||
menu_->addAction(tr("InsertLastLine"), this, [this]() {
|
||||
menu_->addAction(tr("添加新行"), this, [this]() {
|
||||
int cnt = ui->tableWidget->rowCount();
|
||||
ui->tableWidget->insertRow(cnt);
|
||||
auto item1 = new QTableWidgetItem("");
|
||||
@@ -50,7 +50,7 @@ void Compare::InitMenu()
|
||||
ui->tableWidget->setItem(cnt, 1, item2);
|
||||
ui->tableWidget->setItem(cnt, 2, item3);
|
||||
});
|
||||
menu_->addAction(tr("Delete"), this, [this]() { deleteSelectedRows(); });
|
||||
menu_->addAction(tr("删除"), this, [this]() { deleteSelectedRows(); });
|
||||
menu_->addSeparator();
|
||||
connect(ui->tableWidget, &QTableWidget::customContextMenuRequested, this,
|
||||
[this](const QPoint& pos) { menu_->exec(QCursor::pos()); });
|
||||
|
||||
Reference in New Issue
Block a user