Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 253 → Rev 254

/trunk/DBViewer/database.cpp
1653,6 → 1653,7
TWmiVideoCard vCard;
TWmiMatherBoard mBoard;
TWmiProcessor processor;
QList<TWmiMemoryModul> memory_moduls;
 
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
 
1757,6 → 1758,30
}
 
 
memory_moduls = MainWindow::getWmiRAM(IP_str, user_name_str, password_str);
 
if (!memory_moduls.isEmpty()){
for (int i = 0; i < memory_moduls.count(); i++){
 
QTreeWidgetItem * itm_ram_modul;
QTreeWidgetItem * itm_modul_bank;
QTreeWidgetItem * itm_modul_cap; // îáúåì ïàìÿòè
 
QString tmp_str;
tmp_str = tr("Ìîäóëü ïàìÿòè: ");
tmp_str.append(QVariant(memory_moduls.at(i).capacity/1024/1024).asString());
tmp_str.append(tr(" ÌÁò"));
itm_ram_modul = new QTreeWidgetItem(itm_tmp);
itm_ram_modul->setText(0, tmp_str);
 
 
}
 
 
 
}
 
 
int i;
i++;
 
1769,3 → 1794,8
 
 
}