--===============1633760518== Content-Type: multipart/signed; boundary="nextPart1316328.tB7qVqzc9E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1316328.tB7qVqzc9E Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Alle domenica 30 dicembre 2007, David Boosalis ha scritto: > I would like to get the icon associated with a mime type. I am using > KMimeType to try and do this. > [...] There's nothing wrong in your code, but keep in mind that KDE 4 is using th= e=20 standard freedesktop.org mimetypes, and the freedesktop.org naming scheme f= or=20 the icons. This means that the icon for each mimetype is not specified as property in = the=20 mimetype itself, but the it's the name itself of the mimetype to determine= =20 the icon name. Eg: application/pdf -> application-pdf application/x-font-tex -> application-x-font-tex that is, the name of the mimetype with the / turned into a - =2D-=20 Pino Toscano --nextPart1316328.tB7qVqzc9E Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHd3oaTNH2piB/L3oRAoMgAKCWex5Cw/cOs//yVWA2jHzX6rza1QCfdFaI nSIqbKDdhfsoOgnkHuCM0fc= =da85 -----END PGP SIGNATURE----- --nextPart1316328.tB7qVqzc9E-- --===============1633760518== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1633760518==--