Logo Search packages:      
Sourcecode: schafkopf version File versions  Download package

t_ResultValues * Settings::moneyResults (  )  const

delete after usage

Definition at line 221 of file settings.cpp.

References t_ResultValues::laufende, t_ResultValues::ramsch, t_ResultValues::rufspiel, t_ResultValues::schneider, t_ResultValues::schwarz, and t_ResultValues::solo.

{
    QMutexLocker locker( m_mutex );
    
    t_ResultValues* r = new t_ResultValues;
    KConfig* config = kapp->config();
    config->setGroup( "MoneyValues" );
    r->solo = config->readDoubleNumEntry( "Solo", 0.2 );
    r->rufspiel = config->readDoubleNumEntry( "Rufspiel", 0.1 );
    r->laufende = config->readDoubleNumEntry( "Laufende", 0.1 );
    r->schneider = config->readDoubleNumEntry( "Schneider", 0.1 );
    r->schwarz = config->readDoubleNumEntry( "Schwarz", 0.1 );
    r->ramsch = config->readDoubleNumEntry( "Ramsch", 0.2 );
    return r;    
}


Generated by  Doxygen 1.6.0   Back to index