Beispiel #1
0
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;
}
Beispiel #2
0
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;
}