NatureListComboBox::NatureListComboBox(QWidget* parent): QComboBox(parent) { std::vector<pkstring> natures_vec; get_nature_list(natures_vec); for(uint16_t i = 0; i < natures_vec.size(); i++) addItem(tr(natures_vec[i].const_char()), QVariant(i)); }
NaturesComboBox::NaturesComboBox(QWidget* parent): QComboBox(parent) { std::vector<std::string> natures_vec; get_nature_list(natures_vec); for(int i = 0; i < natures_vec.size(); i++) { addItem(tr(natures_vec[i].c_str()), QVariant(i)); } }