Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfileplacesmodel.cpp
Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Line(s) | 364 | QString predicate(QString::fromLatin1("[[[[ StorageVolume.ignored == false AND [ StorageVolume.usage == 'FileSystem' OR StorageVolume.usage == 'Encrypted' ]]" | |||
---|---|---|---|---|---|
367 | " OR " | 367 | " OR " | ||
368 | "OpticalDisc.availableContent & 'Audio' ]" | 368 | "OpticalDisc.availableContent & 'Audio' ]" | ||
369 | " OR " | 369 | " OR " | ||
370 | "StorageAccess.ignored == false ]")); | 370 | "StorageAccess.ignored == false ]")); | ||
371 | 371 | | |||
372 | if (KProtocolInfo::isKnownProtocol(QStringLiteral("mtp"))) { | 372 | if (KProtocolInfo::isKnownProtocol(QStringLiteral("mtp"))) { | ||
373 | predicate = QLatin1Char('[') + predicate + QLatin1String(" OR PortableMediaPlayer.supportedProtocols == 'mtp']"); | 373 | predicate = QLatin1Char('[') + predicate + QLatin1String(" OR PortableMediaPlayer.supportedProtocols == 'mtp']"); | ||
374 | } | 374 | } | ||
375 | if (KProtocolInfo::isKnownProtocol(QStringLiteral("camera"))) { | ||||
376 | predicate = QLatin1Char('[') + predicate + QLatin1String(" OR Camera.supportedProtocols == 'ptp']"); | ||||
377 | } | ||||
375 | 378 | | |||
376 | d->predicate = Solid::Predicate::fromString(predicate); | 379 | d->predicate = Solid::Predicate::fromString(predicate); | ||
377 | 380 | | |||
378 | Q_ASSERT(d->predicate.isValid()); | 381 | Q_ASSERT(d->predicate.isValid()); | ||
379 | 382 | | |||
380 | connect(d->bookmarkManager, SIGNAL(changed(QString,QString)), | 383 | connect(d->bookmarkManager, SIGNAL(changed(QString,QString)), | ||
381 | this, SLOT(_k_reloadBookmarks())); | 384 | this, SLOT(_k_reloadBookmarks())); | ||
382 | connect(d->bookmarkManager, SIGNAL(bookmarksChanged(QString)), | 385 | connect(d->bookmarkManager, SIGNAL(bookmarksChanged(QString)), | ||
▲ Show 20 Lines • Show All 982 Lines • Show Last 20 Lines |