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

void KDarConfig::setFirstSliceSizeString ( int  medium,
const QString &  firstSliceSizeString 
)

Set the first slice size number.

Definition at line 711 of file kdarConfig.cpp.

Referenced by slotFirstSliceSizeString().

{
    //Make sure we have a valid slice size: whole numbers only.
    //i.e. suppose the config file is modified...
    QRegExpValidator *validator = ( QRegExpValidator * ) firstSliceSizeLineEdit->validator();
    if ( validator )
    {
        QString input = firstSliceSizeString;
        int pos = input.length() - 1;
        if ( validator->validate( input, pos ) == QValidator::Acceptable )
        {
            mediaFirstSizes[ medium ] = firstSliceSizeString;
        }
    }
    else
    {
        kdDebug() << "KDarConfig::setFirstSliceSizeString() error: QValidator is not set." << endl;
    }
}


Generated by  Doxygen 1.6.0   Back to index