mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kio: replace KMimeType::iconNameForUrl() with KIO::pixmapForUrl() in KFilePlaceEditDialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4f3da48844
commit
aa5fa71ef2
2 changed files with 5 additions and 5 deletions
|
@ -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 );
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue