Commit 7b07887b authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Replace the rest of deprecated KIconLoader SmallIcon method usage

parent c55a756e
......@@ -163,22 +163,22 @@ void K3b::DataDirTreeView::slotDropAnimate()
else {
switch(d->animationCounter) {
case 0:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-cyan" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-cyan" ).pixmap( KIconLoader::SizeSmall ) );
break;
case 1:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-green" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-green" ).pixmap( KIconLoader::SizeSmall ) );
break;
case 2:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-yellow" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-yellow" ).pixmap( KIconLoader::SizeSmall ) );
break;
case 3:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-orange" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-orange" ).pixmap( KIconLoader::SizeSmall ) );
break;
case 4:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-red" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-red" ).pixmap( KIconLoader::SizeSmall ) );
break;
case 5:
d->animatedDirItem->setPixmap( 0, SmallIcon( "folder-violet" ) );
d->animatedDirItem->setPixmap( QIcon::fromTheme( "folder-violet" ).pixmap( KIconLoader::SizeSmall ) );
break;
}
......
......@@ -164,9 +164,9 @@ K3b::VcdTrackDialog::VcdTrackDialog( K3b::VcdDoc* doc, const QList<K3b::VcdTrack
d->muxrate->setText( i18n( "%1 bit/s", selectedTrack->muxrate() ) );
if ( selectedTrack->isSegment() )
d->labelMimeType->setPixmap( SmallIcon( "image-x-generic", KIconLoader::SizeMedium ) );
d->labelMimeType->setPixmap( QIcon::fromTheme("image-x-generic").pixmap(KIconLoader::SizeMedium) );
else
d->labelMimeType->setPixmap( SmallIcon( "video-x-generic", KIconLoader::SizeMedium ) );
d->labelMimeType->setPixmap( QIcon::fromTheme("video-x-generic").pixmap(KIconLoader::SizeMedium) );
fillGui();
}
......@@ -307,7 +307,7 @@ void K3b::VcdTrackDialog::fillPbcGui()
}
// add Event Disabled
QPixmap disabledIcon = SmallIcon( "process-stop" );
QPixmap disabledIcon = QIcon::fromTheme( "process-stop" ).pixmap( KIconLoader::SizeSmall );
QString disabledName = i18n( "Event Disabled" );
d->pbc_previous->addItem( disabledIcon, disabledName );
d->pbc_next->addItem( disabledIcon, disabledName );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment