| 570 | } |
| 571 | |
| 572 | void MainWindow::refreshConnInfo() { |
| 573 | if(_mainWidget->getTaskSize() > 0) { |
| 574 | QMessageBox::information(this,tr("错误"),tr("后台任务未完成,请稍后刷新连接!")); |
| 575 | return; |
| 576 | } |
| 577 | |
| 578 | if(_redisClient) { |
| 579 | if(_redisClient->openCluster()) { |
| 580 | _mainWidget->reOpenClient(); |
| 581 | } else { |
| 582 | QMessageBox::information(this,tr("错误"),_redisClient->getErrorInfo()); |
| 583 | } |
| 584 | } else { |
| 585 | QMessageBox::information(this,tr("错误"),tr("客户端连接为空!")); |
| 586 | } |
| 587 | } |
| 588 | |
| 589 | void MainWindow::keyView() { |
| 590 | _mainWidget->openView(); |
nothing calls this directly
no test coverage detected