ui- > comboBox_2- > addItems( [ ] ( ) - > QStringList {
QDate date = QDate:: currentDate ( ) ;
int current_year = date.toString ( "yyyy" ) .toInt ( ) ;
QStringList year_list;
for ( int i = 0 ; i < 50 ; i++ ) {
year_list << QString:: number ( current_year - ( 50 - i) ) ;
}
return year_list;
} ) ;
dWktPmNvbWJvQm94XzItPmFkZEl0ZW1zKFtdKCkgLT4gUVN0cmluZ0xpc3QgewogICAgICAgIFFEYXRlIGRhdGUgPSBRRGF0ZTo6Y3VycmVudERhdGUoKTsKICAgICAgICBpbnQgY3VycmVudF95ZWFyID0gZGF0ZS50b1N0cmluZygieXl5eSIpLnRvSW50KCk7CiAgICAgICAgUVN0cmluZ0xpc3QgeWVhcl9saXN0OwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgNTA7IGkrKykgewogICAgICAgICAgICB5ZWFyX2xpc3QgPDwgUVN0cmluZzo6bnVtYmVyKGN1cnJlbnRfeWVhciAtICg1MCAtIGkpKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHllYXJfbGlzdDsKICAgIH0pOw==