Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kdirmodel.cpp
Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Line(s) | 401 | { | |||
---|---|---|---|---|---|
414 | connect(d->m_dirLister, &KCoreDirLister::refreshItems, this, | 414 | connect(d->m_dirLister, &KCoreDirLister::refreshItems, this, | ||
415 | [this](const QList<QPair<KFileItem,KFileItem> > &items){d->_k_slotRefreshItems(items);} ); | 415 | [this](const QList<QPair<KFileItem,KFileItem> > &items){d->_k_slotRefreshItems(items);} ); | ||
416 | connect(d->m_dirLister, QOverload<>::of(&KCoreDirLister::clear), this, | 416 | connect(d->m_dirLister, QOverload<>::of(&KCoreDirLister::clear), this, | ||
417 | [this](){d->_k_slotClear();} ); | 417 | [this](){d->_k_slotClear();} ); | ||
418 | connect(d->m_dirLister, QOverload<const QUrl&, const QUrl&>::of(&KCoreDirLister::redirection), this, | 418 | connect(d->m_dirLister, QOverload<const QUrl&, const QUrl&>::of(&KCoreDirLister::redirection), this, | ||
419 | [this](const QUrl &oldUrl, const QUrl &newUrl){d->_k_slotRedirection(oldUrl, newUrl);} ); | 419 | [this](const QUrl &oldUrl, const QUrl &newUrl){d->_k_slotRedirection(oldUrl, newUrl);} ); | ||
420 | } | 420 | } | ||
421 | 421 | | |||
422 | Qt::DropActions KDirModel::supportedDropActions() const | ||||
423 | { | ||||
424 | return Qt::CopyAction | Qt::MoveAction | Qt::LinkAction | Qt::IgnoreAction; | ||||
425 | } | ||||
426 | | ||||
427 | | ||||
422 | KDirLister *KDirModel::dirLister() const | 428 | KDirLister *KDirModel::dirLister() const | ||
423 | { | 429 | { | ||
424 | return d->m_dirLister; | 430 | return d->m_dirLister; | ||
425 | } | 431 | } | ||
426 | 432 | | |||
427 | void KDirModelPrivate::_k_slotNewItems(const QUrl &directoryUrl, const KFileItemList &items) | 433 | void KDirModelPrivate::_k_slotNewItems(const QUrl &directoryUrl, const KFileItemList &items) | ||
428 | { | 434 | { | ||
429 | //qDebug() << "directoryUrl=" << directoryUrl; | 435 | //qDebug() << "directoryUrl=" << directoryUrl; | ||
▲ Show 20 Lines • Show All 876 Lines • Show Last 20 Lines |