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

void KDarConfig::setMediaSize ( int  currentItem  )  [slot]

Sets the media size for the specified media type ( i.e. media() ).

Definition at line 2053 of file kdarConfig.cpp.

References libdarSliceSize().

Referenced by fillInDialog(), and slotMedia().

{
    kdDebug() << "KDarConfig::setMediaSize() reached. CurrentItem is " << currentItem << endl;
    //Block the textChanged() and activated() signals for the lineEdit and Combobox
    sliceSizeLineEdit->blockSignals( true );
    sliceSizeComboBox->blockSignals( true );
    sliceSizeLineEdit->setText( mediaSizes[ currentItem ] );
    sliceSizeComboBox->setCurrentItem( mediaSuffices[ currentItem ] );
    firstSliceSizeLineEdit->setText( mediaFirstSizes[ currentItem ] );
    firstSliceSizeComboBox->setCurrentItem( mediaFirstSuffices[ currentItem ] );
    //unblock the signals
    sliceSizeLineEdit->blockSignals( false );
    sliceSizeComboBox->blockSignals( false );

    kdDebug() << "KDarConfig::setMediaSize() reached. sliceSize is " << libdar::deci(libdarSliceSize()).human().c_str() << endl;
}


Generated by  Doxygen 1.6.0   Back to index