[k3b] When is this window shown?

Markus kamikazow at web.de
Sun Jun 27 17:12:44 UTC 2010


This appears to be the window when the user right-clicks on a file in a K3b 
data project and selects "Properties":

void K3b::DataPropertiesDialog::loadListProperties( const 
QList<K3b::DataItem*>& items )
{
    m_labelIcon->setPixmap( DesktopIcon( "document-multiple", 
KIconLoader::SizeLarge ) );

    int files = 0;
    int folders = 0;
    KIO::filesize_t size = 0;
    K3b::Msf blocks = 0;
    for ( QList<K3b::DataItem*>::iterator it = m_dataItems.begin();
          it != m_dataItems.end(); ++it ) {
        K3b::DataItem* item = *it;
        if ( item->isFile() )
            ++files;
        else if ( item->isDir() )
            ++folders;
        blocks += item->blocks();
        size += item->size();
    }
    QString s = i18np( "One Item", "%1 Items", items.count() );
    s += " - ";
    if ( files > 0 )
        s += i18np( "One File", "%1 Files", files );
    else
        s += "No Files";
    s += " - ";
    if ( folders > 0 )
        s += i18np( "One Folder", "%1 Folders", folders );
    else
        s += "No Folders";
    m_multiSelectionLabel->setText( s );



My problem now is that I simply can't make K3b show those strings. It always 
looks like the attached screenshot. No "Items", no "Folders" (with capital F), 
etc.
Am I looking at the wrong window or is that function not used anymore and 
resulting just in unnecessary workload for translators?

Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: k3b.png
Type: image/png
Size: 28475 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/k3b/attachments/20100627/091c91ac/attachment.png>


More information about the k3b mailing list