mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 09:20:13 +00:00
port away from KMimeType
This commit is contained in:
parent
12413eb910
commit
0ce1c983b5
|
@ -37,7 +37,6 @@
|
|||
#include <KJobWidgets>
|
||||
#include <QMenu>
|
||||
#include <KMimeTypeTrader>
|
||||
#include <KMimeType>
|
||||
#include <KNewFileMenu>
|
||||
#include <konq_operations.h>
|
||||
#include <KService>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <KIconButton>
|
||||
#include <KLineEdit>
|
||||
#include <KLocalizedString>
|
||||
#include <KMimeType>
|
||||
#include <QMimeDatabase>
|
||||
#include <KUrlRequester>
|
||||
#include <KComponentData>
|
||||
#include <QCheckBox>
|
||||
|
@ -154,7 +154,8 @@ void PlacesItemEditDialog::initialize()
|
|||
m_iconButton->setIconSize(IconSize(KIconLoader::Desktop));
|
||||
m_iconButton->setIconType(KIconLoader::NoGroup, KIconLoader::Place);
|
||||
if (m_icon.isEmpty()) {
|
||||
m_iconButton->setIcon(KMimeType::iconNameForUrl(m_url));
|
||||
QMimeDatabase db;
|
||||
m_iconButton->setIcon(db.mimeTypeForUrl(m_url).iconName());
|
||||
} else {
|
||||
m_iconButton->setIcon(m_icon);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue