mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 20:36:19 -05:00
do not scroll encounter tabs with wheel, set current species combo by index instead of text
This commit is contained in:
@@ -35,7 +35,7 @@ QWidget *SpeciesComboDelegate::createEditor(QWidget *parent, const QStyleOptionV
|
||||
void SpeciesComboDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const {
|
||||
QString species = index.data(Qt::EditRole).toString();
|
||||
NoScrollComboBox *combo = static_cast<NoScrollComboBox *>(editor);
|
||||
combo->setCurrentText(species);
|
||||
combo->setCurrentIndex(combo->findText(species));
|
||||
}
|
||||
|
||||
void SpeciesComboDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
|
||||
|
||||
Reference in New Issue
Block a user