comparison src/gui/dialog/information.cc @ 291:9a88e1725fd2

*: refactor lots of stuff I forgot to put this into different commits, oops! anyway, it doesn't really matter *that* much since this is an unfinished hobby project anyway. once it starts getting stable commit history will be more important, but for now it's not that big of a deal
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 16:31:07 -0400
parents 862d0d8619f6
children 99cbc51433e4
comparison
equal deleted inserted replaced
290:9347e2eaf6e5 291:9a88e1725fd2
169 layout->addWidget(new QLabel(tr("Status:"), section), 0, 0); 169 layout->addWidget(new QLabel(tr("Status:"), section), 0, 0);
170 170
171 QComboBox* combo_box = new QComboBox(section); 171 QComboBox* combo_box = new QComboBox(section);
172 172
173 for (unsigned int i = 0; i < Anime::ListStatuses.size(); i++) 173 for (unsigned int i = 0; i < Anime::ListStatuses.size(); i++)
174 combo_box->addItem(Strings::ToQString(Translate::ToString(Anime::ListStatuses[i])), 174 combo_box->addItem(Strings::ToQString(Translate::ToLocalString(Anime::ListStatuses[i])),
175 static_cast<int>(Anime::ListStatuses[i])); 175 static_cast<int>(Anime::ListStatuses[i]));
176 176
177 connect(combo_box, QOverload<int>::of(&QComboBox::currentIndexChanged), this, 177 connect(combo_box, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
178 [this, combo_box](int) { 178 [this, combo_box](int) {
179 _status = static_cast<Anime::ListStatus>(combo_box->currentData().toInt()); 179 _status = static_cast<Anime::ListStatus>(combo_box->currentData().toInt());