kio: replace KMimeType::iconNameForUrl() with KIO::pixmapForUrl() in KFilePlaceEditDialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-30 02:51:12 +03:00
parent 4f3da48844
commit aa5fa71ef2
2 changed files with 5 additions and 5 deletions

View file

@ -129,7 +129,7 @@ KFilePlaceEditDialog::KFilePlaceEditDialog(bool allowGlobal, const KUrl& url,
m_iconButton->setIconSize( iconSize );
m_iconButton->setIconType( KIconLoader::NoGroup, KIconLoader::Place );
if ( icon.isEmpty() )
m_iconButton->setIcon( KMimeType::iconNameForUrl( url ) );
m_iconButton->setIcon( KIO::pixmapForUrl( url ) );
else
m_iconButton->setIcon( icon );
m_iconButton->setWhatsThis( whatsThisText );

View file

@ -59,8 +59,8 @@ public:
* @p iconSize determines the size of the icon that is shown/selectable
* @p parent the parent-widget for the dialog
*
* If you leave the icon empty, the default icon for the given url will be
* used (KMimeType::iconNameForUrl()).
* If the icon is empty, the default icon for the given url will be
* used (KIO::pixmapForUrl()).
*/
static bool getInformation( bool allowGlobal, KUrl& url,
QString& label, QString& icon,
@ -82,8 +82,8 @@ public:
* @p iconSize determines the size of the icon that is shown/selectable
* @p parent the parent-widget for the dialog
*
* If you leave the icon empty, the default icon for the given url will be
* used (KMimeType::iconNameForUrl()).
* If the icon is empty, the default icon for the given url will be
* used (KIO::pixmapForUrl()).
*/
KFilePlaceEditDialog(bool allowGlobal, const KUrl& url,
const QString& label, const QString &icon,