No more kde4support for dirmodel plugin
This commit is contained in:
parent
38fb14baaa
commit
7ee3a698b0
@ -8,11 +8,10 @@ set(dirmodel_SRCS
|
||||
|
||||
add_library(dirmodelplugin SHARED ${dirmodel_SRCS})
|
||||
target_link_libraries(dirmodelplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${Qt5Qml_LIBRARIES}
|
||||
Qt5::Core
|
||||
Qt5::Qml
|
||||
KF5::KIOCore
|
||||
KF5::KIOWidgets
|
||||
${KDE4Support_LIBRARIES}
|
||||
KF5::KGuiAddons
|
||||
)
|
||||
|
||||
|
@ -22,23 +22,24 @@
|
||||
#include <QImage>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <KDirLister>
|
||||
#include <kdirlister.h>
|
||||
#include <QDebug>
|
||||
#include <KIO/PreviewJob>
|
||||
#include <KImageCache>
|
||||
#include <KMimeType>
|
||||
#include <kio/previewjob.h>
|
||||
#include <kimagecache.h>
|
||||
#include <QMimeDatabase>
|
||||
|
||||
|
||||
DirModel::DirModel(QObject *parent)
|
||||
: KDirModel(parent),
|
||||
m_screenshotSize(180, 120)
|
||||
{
|
||||
KMimeType::List mimeList = KMimeType::allMimeTypes();
|
||||
QMimeDatabase db;
|
||||
QList<QMimeType> mimeList = db.allMimeTypes();
|
||||
|
||||
m_mimeTypes << "inode/directory";
|
||||
foreach (KMimeType::Ptr mime, mimeList) {
|
||||
if (mime->name().startsWith(QLatin1String("image/"))) {
|
||||
m_mimeTypes << mime->name();
|
||||
foreach (const QMimeType &mime, mimeList) {
|
||||
if (mime.name().startsWith(QStringLiteral("image/"))) {
|
||||
m_mimeTypes << mime.name();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,10 +21,10 @@
|
||||
#define DIRMODEL_H
|
||||
|
||||
#include <QSize>
|
||||
#include <KDirModel>
|
||||
#include <kdirmodel.h>
|
||||
#include <QVariant>
|
||||
#include <KImageCache>
|
||||
#include <KSharedDataCache>
|
||||
#include <kimagecache.h>
|
||||
#include <kshareddatacache.h>
|
||||
|
||||
class QTimer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user