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

void KDarConfig::setSliceSizeString ( const QString &  sliceSizeString  ) 

Set the slice size number.

Definition at line 676 of file kdarConfig.cpp.

Referenced by KDarConfig(), operator=(), readGlobalSettings(), and slotSliceSizeString().

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


Generated by  Doxygen 1.6.0   Back to index