[k3b] When is this window shown?

Sebastian Trüg trueg at kde.org
Thu Jul 1 05:43:02 UTC 2010


select more than one file.

On 06/27/2010 07:12 PM, Markus wrote:
> 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



More information about the k3b mailing list