Commit 90e416ed by Belákovics Ádám

Added all info display from lib about VM

parent 36d3dd60
......@@ -73,12 +73,22 @@ void MainWindow::loadVMData(std::string id){
ComputeData data = myController.getDataByID(id.c_str());
currentSelectedVM = data;
ui->lVMName->setText(data.name.c_str());
//--- for displaying initial hint
QFont font = ui->lVMName->font();
font.setPointSize(20);
font.setBold(false);
ui->lVMName->setFont(font);
//---
ui->lArch->setText(data.architecture.c_str());
ui->lCPU->setText(std::to_string(data.cpu).c_str());
ui->lMemory->setText(std::to_string(data.memory).c_str());
ui->lCores->setText(std::to_string(data.cores).c_str());
ui->lHostname->setText((data.hostname + ":" + std::to_string(data.port)).c_str());
ui->lProtocol->setText(data.protocol.c_str());
ui->lUsernameVM->setText(data.username.c_str());
ui->lPasswordVM->setText(data.password.c_str());
ui->lSuspended->setText(data.leaseSuspend.c_str());
ui->lRemoved->setText(data.leaseRemoved.c_str());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment