Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 248 → Rev 249

/trunk/DBViewer/mainwindow.cpp
1852,13 → 1852,13
values_list = tmp_str.split("|");
int index_tmp;
index_tmp = fields_list.indexOf(tr("AdapterCompatibility")); // ïðîèçâîäèòåëü
if (index_tmp!=-1) result.manufacturer = values_list.at(index_tmp);
if ((index_tmp!=-1) && (index_tmp < values_list.count())) result.manufacturer = values_list.at(index_tmp);
index_tmp = fields_list.indexOf(tr("Name")); // íàçâàíèå âèäåîêàðòû
if (index_tmp!=-1) result.name = values_list.at(index_tmp);
if ((index_tmp!=-1) && (index_tmp < values_list.count())) result.name = values_list.at(index_tmp);
index_tmp = fields_list.indexOf(tr("VideoProcessor")); // ìîäåëü
if (index_tmp!=-1) result.model = values_list.at(index_tmp);
if ((index_tmp!=-1) && (index_tmp < values_list.count())) result.model = values_list.at(index_tmp);
index_tmp = fields_list.indexOf(tr("AdapterRAM")); // ìîäåëü
if (index_tmp!=-1) result.video_ram = QVariant(values_list.at(index_tmp)).asInt();
if ((index_tmp!=-1) && (index_tmp < values_list.count())) result.video_ram = QVariant(values_list.at(index_tmp)).asInt();
return result;
}
else return result; //ïîëó÷èëè íå êîððåêòíûé îòâåò