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

int YView::getLocalIntegerOption ( const QString &  option  )  const

Retrieve an int option

Definition at line 1496 of file view.cpp.

References YSession::getOptions(), YInternalOptionPool::readIntegerOption(), and YSession::self().

Referenced by drawColor(), YModeInsert::execCommand(), recalcScreen(), refreshScreen(), and YView().

{
    if ( YSession::self()->getOptions()->hasOption( getLocalOptionKey() + "\\" + option ) ) //find the local one ?
        return YSession::self()->getOptions()->readIntegerOption( getLocalOptionKey() + "\\" + option );
    else
        return YSession::self()->getOptions()->readIntegerOption( "Global\\" + option ); // else give the global default if any
}


Generated by  Doxygen 1.6.0   Back to index