语言:完善英文转中文。
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()); });
|
||||
|
||||
@@ -30,7 +30,7 @@ void Connecter::RunWorker(ClientCore* clientCore)
|
||||
|
||||
connect(clientCore_, &ClientCore::conSuccess, this, [this]() {
|
||||
setState(ConnectState::CS_CONNECTED);
|
||||
qInfo() << QString(tr("Connected."));
|
||||
qInfo() << QString(tr("已连接。"));
|
||||
});
|
||||
|
||||
connect(clientCore_, &ClientCore::sigYourId, this,
|
||||
@@ -38,12 +38,12 @@ void Connecter::RunWorker(ClientCore* clientCore)
|
||||
|
||||
connect(clientCore_, &ClientCore::conFailed, this, [this]() {
|
||||
setState(ConnectState::CS_DISCONNECT);
|
||||
qInfo() << QString(tr("Connect failed."));
|
||||
qInfo() << QString(tr("连接失败。"));
|
||||
});
|
||||
|
||||
connect(clientCore_, &ClientCore::connecting, this, [this]() {
|
||||
setState(ConnectState::CS_CONNECTING);
|
||||
qInfo() << QString(tr("Connecting..."));
|
||||
qInfo() << QString(tr("连接中......"));
|
||||
});
|
||||
|
||||
connect(clientCore_, &ClientCore::sigDisconnect, this, [this]() {
|
||||
@@ -55,7 +55,7 @@ void Connecter::RunWorker(ClientCore* clientCore)
|
||||
ui->elbClient->clear();
|
||||
clientCore_->SetRemoteID("");
|
||||
ui->edOwnID->setText("");
|
||||
qInfo() << QString(tr("Disconnected."));
|
||||
qInfo() << QString(tr("已断开。"));
|
||||
});
|
||||
connect(clientCore_, &ClientCore::sigOffline, this, [this]() {
|
||||
ui->elbClient->clear();
|
||||
@@ -152,7 +152,7 @@ void Connecter::RefreshClient()
|
||||
qCritical() << QString(tr("请求查询客户端列表失败。"));
|
||||
return;
|
||||
}
|
||||
qInfo() << QString(tr("ask client list..."));
|
||||
qInfo() << QString(tr("刷新在线客户端列表。"));
|
||||
}
|
||||
|
||||
void Connecter::ShowContextMenu(const QPoint& pos)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="elbClient">
|
||||
<property name="text">
|
||||
<string>None</string>
|
||||
<string>未选择远端客户端</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -104,8 +104,8 @@ void FileManager::InitControl()
|
||||
void FileManager::InitMenu()
|
||||
{
|
||||
menu_ = new QMenu(ui->tableWidget);
|
||||
menu_->addAction(tr("Filter"), this, &FileManager::ShowFilterForm);
|
||||
menu_->addAction(tr("FullPath"), this, &FileManager::CopyFullPath);
|
||||
menu_->addAction(tr("过滤器"), this, &FileManager::ShowFilterForm);
|
||||
menu_->addAction(tr("复制文件路径"), this, &FileManager::CopyFullPath);
|
||||
menu_->addSeparator();
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ void FileManager::GenFilter()
|
||||
void FileManager::ShowFilterForm()
|
||||
{
|
||||
QDialog dialog(this);
|
||||
dialog.setWindowTitle("Select file type");
|
||||
dialog.setWindowTitle("筛选文件类型");
|
||||
dialog.resize(400, 300);
|
||||
QListWidget listWidget(&dialog);
|
||||
|
||||
@@ -457,7 +457,7 @@ void FileManager::evtHome()
|
||||
auto r = fileHelper_->GetHome();
|
||||
auto curPath = ui->comboBox->currentText();
|
||||
SetRoot(curPath);
|
||||
qDebug() << QString(tr("%1 获取家目录结果:%2").arg(__FUNCTION__).arg(r));
|
||||
qDebug() << QString(tr("%1 获取用户目录结果:%2").arg(__FUNCTION__).arg(r));
|
||||
}
|
||||
|
||||
void FileManager::evtFile()
|
||||
|
||||
Reference in New Issue
Block a user