int ZhscWidget::poemNoKey() { int i = 0; StringMap::Iterator it; for ( it = smPoem.begin(); it != smPoem.end(); ++it ) { if ( it.data() == sPoemNo ) { i = it.key(); } } return i; }
int ZhscWidget::dynastyNoKey() { int i = 0; StringMap::Iterator it; for ( it = smDynasty.begin(); it != smDynasty.end(); ++it ) { if ( it.data() == sDynastyNo ) { i = it.key(); } } return i; }